From d17f3bedd3c58896cccd69c91397c41e7080222e Mon Sep 17 00:00:00 2001 From: Michele Comitini Date: Sun, 20 Jan 2013 00:03:22 +0100 Subject: [PATCH] correct management of null id. --- gluon/tools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gluon/tools.py b/gluon/tools.py index e515e74c..96f8f257 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -4413,7 +4413,10 @@ class Service(object): s = methods[method](*params) if hasattr(s, 'as_list'): s = s.as_list() - return return_response(id, s) + if not must_respond: + return return_response(id, s) + else: + return except Service.JsonRpcException, e: return return_error(id, e.code, e.info) except BaseException: