tolerate results without method

This commit is contained in:
ThomasV 2012-03-29 23:21:31 +02:00
parent 46733d9b0f
commit 5e512754d3
1 changed files with 2 additions and 5 deletions

View File

@ -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: