treplace exit with sys.exit - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2a9c62c9b80ff0d679bd09e75601a5198a493d1e DIR parent f045490597243b056c35b56e0159588123dcbe5f HTML Author: thomasv <thomasv@gitorious> Date: Fri, 13 Dec 2013 17:53:13 +0100 replace exit with sys.exit Diffstat: M electrum | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -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): t@@ -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) t@@ -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]