correct management of null id.

This commit is contained in:
Michele Comitini committed 2013-01-20 00:03:22 +01:00
1 parent 9311e7c94f
commit d17f3bedd3
1 file changed
+3
+3
View File
@@ -4413,7 +4413,10 @@ class Service(object):
s = methods[method](*params) s = methods[method](*params)
if hasattr(s, 'as_list'): if hasattr(s, 'as_list'):
s = s.as_list() s = s.as_list()
if not must_respond:
return return_response(id, s) return return_response(id, s)
else:
return
except Service.JsonRpcException, e: except Service.JsonRpcException, e:
return return_error(id, e.code, e.info) return return_error(id, e.code, e.info)
except BaseException: except BaseException: