Browse Source

dont create wallet instance twice

master
ThomasV 10 years ago
parent
commit
ca9eb50821
  1. 4
      electrum

4
electrum

@ -161,11 +161,11 @@ def init_cmdline(config):
print_msg("Wallet saved in '%s'" % wallet.storage.path)
if cmd.name not in ['create', 'restore'] and cmd.requires_wallet and not storage.file_exists:
else:
if cmd.requires_wallet and not storage.file_exists:
print_msg("Error: Wallet file not found.")
print_msg("Type 'electrum create' to create a new wallet, or provide a path to a wallet with the -w option")
sys.exit(0)
# create wallet instance
wallet = Wallet(storage) if cmd.requires_wallet else None

Loading…
Cancel
Save