diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-12-20 23:43:21 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-12-20 23:43:21 +0100 |
commit | 62965d0668e81fc801c4be2d61c1a0b64b0edca8 (patch) | |
tree | 99a0c667619cacd2d0adfa688a49d13c33b6655a /pyLoadCli.py | |
parent | python 2.5 compatibility (diff) | |
download | pyload-62965d0668e81fc801c4be2d61c1a0b64b0edca8.tar.xz |
cli + web fixes
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-x | pyLoadCli.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pyLoadCli.py b/pyLoadCli.py index 8a0bd2b3f..061c366af 100755 --- a/pyLoadCli.py +++ b/pyLoadCli.py @@ -73,7 +73,10 @@ class pyLoadCli: os.system("clear") sys.exit() # ctrl + c elif ord(inp) == 13: - self.handle_input() + try: + self.handle_input() + except Exception, e: + self.println(2, red(str(e))) self.input = "" #enter self.print_input() elif ord(inp) == 127: @@ -189,7 +192,7 @@ class pyLoadCli: line += 1 self.println(line, "Parse the links you want to add.") line += 1 - self.println(line, "Type END when done.") + self.println(line, "Type "+mag("END")+" when done.") line += 1 self.println(line, "Links added: " + mag(str(self.links_added))) line += 1 |