tMerge pull request #1499 from SmileyChris/sys-exit - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit 691fc54370a2c56acd4d28e7e98a605a56922918 (DIR) parent 71aa823ee053fd5cdcb8cc0e41f50a989fc0ae26 (HTM) Author: Neil <kyuupichan@gmail.com> Date: Mon, 19 Oct 2015 12:41:21 +0900 Merge pull request #1499 from SmileyChris/sys-exit Missing sys import Diffstat: M lib/websockets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- (DIR) diff --git a/lib/websockets.py b/lib/websockets.py t@@ -21,8 +21,8 @@ from collections import defaultdict try: from SimpleWebSocketServer import WebSocket, SimpleSSLWebSocketServer except ImportError: - print "install SimpleWebSocketServer" - sys.exit() + import sys + sys.exit("install SimpleWebSocketServer") import util t@@ -93,7 +93,7 @@ class WsClientThread(util.DaemonThread): except Queue.Empty: continue id = r.get('id') - if id is None: + if id is None: method = r.get('method') params = r.get('params') else: