restore initial indentation

This commit is contained in:
ThomasV 2015-10-28 11:13:45 +01:00
parent 142b5532ec
commit 826c44e500
1 changed files with 7 additions and 7 deletions

View File

@ -173,13 +173,13 @@ def init_cmdline(config):
print_msg("Wallet saved in '%s'" % wallet.storage.path)
sys.exit(0)
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
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
# notify plugins
always_hook('cmdline_load_wallet', wallet)