From c06e75795f261cfdf2271b9a32a62be0e3b70e3c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 1 Oct 2013 16:44:51 +0200 Subject: [PATCH] make sure to always print something after the xmlrpc call to the backend returns --- manifold/manifoldapi.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manifold/manifoldapi.py b/manifold/manifoldapi.py index 3fa5f978..2a64a498 100644 --- a/manifold/manifoldapi.py +++ b/manifold/manifoldapi.py @@ -65,11 +65,11 @@ class ManifoldAPI: return ResultValue(**result) except Exception,error: + print "** MANIFOLD API ERROR **" if "Connection refused" in error: raise ManifoldException ( ManifoldResult (code=ManifoldCode.SERVER_UNREACHABLE, output="%s answered %s"%(self.url,error))) # otherwise - print "** MANIFOLD API ERROR **" print "====> ERROR On ManifoldAPI.%s"%methodName,"auth",self.auth,"args",args,"kwds",kwds import traceback traceback.print_exc() @@ -96,5 +96,4 @@ def execute_query(request, query): # XXX Handle errors #Error running query: {'origin': [0, 'XMLRPCAPI'], 'code': 2, 'description': 'No such session: No row was found for one()', 'traceback': 'Traceback (most recent call last):\n File "/usr/local/lib/python2.7/dist-packages/manifold/core/xmlrpc_api.py", line 68, in xmlrpc_forward\n user = Auth(auth).check()\n File "/usr/local/lib/python2.7/dist-packages/manifold/auth/__init__.py", line 245, in check\n return self.auth_method.check()\n File "/usr/local/lib/python2.7/dist-packages/manifold/auth/__init__.py", line 95, in check\n raise AuthenticationFailure, "No such session: %s" % e\nAuthenticationFailure: No such session: No row was found for one()\n', 'type': 2, 'ts': None, 'value': None} - return result['value'] -- 2.43.0