changed print_error to NameError exception to reduce coupling
This commit is contained in:
parent
3e89b65025
commit
990547a06c
3
electrum
3
electrum
|
@ -167,8 +167,7 @@ if __name__ == '__main__':
|
|||
except ImportError:
|
||||
import electrum.gui_lite as gui
|
||||
else:
|
||||
print_error("Error: Unknown GUI: " + options.gui)
|
||||
exit(1)
|
||||
raise NameError(sys.exit("Error: Unknown GUI: " + options.gui))
|
||||
|
||||
gui = gui.ElectrumGui(wallet)
|
||||
WalletSynchronizer(wallet,True).start()
|
||||
|
|
Loading…
Reference in New Issue