ttolerate results without method - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 5e512754d35f2da8ccf8d968eb6f42fdb07e9aaf DIR parent 46733d9b0f1e3a196e1b5af49f12703f77a18c9e HTML Author: ThomasV <thomasv@gitorious> Date: Thu, 29 Mar 2012 23:21:31 +0200 ttolerate results without method Diffstat: M client/interface.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) --- DIR diff --git a/client/interface.py b/client/interface.py t@@ -54,11 +54,8 @@ class Interface: result = c.get('result') error = c.get('error') params = c.get('params',[]) - - try: - method = c['method'] - except: - print "error", c + method = c.get('method',None) + if not method: return if error: