Browse Source

replace exit with sys.exit

283
thomasv 11 years ago
parent
commit
2a9c62c9b8
  1. 8
      electrum

8
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]

Loading…
Cancel
Save