got rid of print_error() to reduce coupling
This commit is contained in:
parent
1eeed7fb27
commit
59b2762258
4
electrum
4
electrum
@ -192,8 +192,8 @@ if __name__ == '__main__':
|
|||||||
cmd = 'help'
|
cmd = 'help'
|
||||||
|
|
||||||
if not wallet.file_exists and cmd not in ['help','create','restore']:
|
if not wallet.file_exists and cmd not in ['help','create','restore']:
|
||||||
print_error("Error: Wallet file not found.")
|
print "Error: Wallet file not found."
|
||||||
print_error("Type 'electrum create' to create a new wallet, or provide a path to a wallet with the -w option")
|
print "Type 'electrum create' to create a new wallet, or provide a path to a wallet with the -w option"
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if cmd in ['create', 'restore']:
|
if cmd in ['create', 'restore']:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user