replace exit with sys.exit
authorthomasv <thomasv@gitorious>
Fri, 13 Dec 2013 16:53:13 +0000 (17:53 +0100)
committerthomasv <thomasv@gitorious>
Fri, 13 Dec 2013 16:53:13 +0000 (17:53 +0100)
electrum

index 2ee0425..059d5f2 100755 (executable)
--- a/electrum
+++ b/electrum
@@ -97,7 +97,7 @@ def print_help(parser):
     print_msg("Type 'electrum help <command>' to see the help for a specific command")
     print_msg("Type 'electrum --help' to see the list of options")
     run_command('help')
-    exit(1)
+    sys.exit(1)
 
 
 def print_help_cb(self, opt, value, parser):
@@ -279,13 +279,13 @@ if __name__ == '__main__':
             password = prompt_password('Password:', False)
             if not password:
                 print_msg("Error: Password required")
-                exit(1)
+                sys.exit(1)
             # check password
             try:
                 seed = wallet.get_seed(password)
             except Exception:
                 print_msg("Error: This password does not decode this wallet.")
-                exit(1)
+                sys.exit(1)
         else:
             password = None
             seed = wallet.get_seed(None)
@@ -320,7 +320,7 @@ if __name__ == '__main__':
         for i in range(1, len(args), 2):
             if len(args) < i+2:
                 print_msg("Error: Mismatched arguments.")
-                exit(1)
+                sys.exit(1)
             outputs.append((args[i], Decimal(args[i+1])))
         args = ['mksendmanytx', outputs, Decimal(options.tx_fee) if options.tx_fee else None, options.change_addr, domain]