commit 5e512754d35f2da8ccf8d968eb6f42fdb07e9aaf
parent 46733d9b0f1e3a196e1b5af49f12703f77a18c9e
Author: ThomasV <thomasv@gitorious>
Date: Thu, 29 Mar 2012 23:21:31 +0200
tolerate results without method
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/client/interface.py b/client/interface.py
@@ -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: