commit 990547a06c1220bccd1118e986a5c9bf7d25f31f
parent 3e89b650258a45afac878d9ee7cb8ba54d50e714
Author: Jimbo77 <onlineregular@gmail.com>
Date: Wed, 22 Aug 2012 12:01:49 -0700
changed print_error to NameError exception to reduce coupling
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/electrum b/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()