X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fmanifoldproxy.py;h=d0636c88fcf8b4fb8ff9c7fea121fbb07aedb555;hb=57c5bcefb1eac66d1db27db28a0c6d3b3b52a407;hp=733f20971c9b0d33f597466e1c87f4118da26e66;hpb=586de43ee15600a9ad1b5b221f506f91618c8bef;p=myslice.git diff --git a/manifold/manifoldproxy.py b/manifold/manifoldproxy.py index 733f2097..d0636c88 100644 --- a/manifold/manifoldproxy.py +++ b/manifold/manifoldproxy.py @@ -64,9 +64,7 @@ with the query passed using POST""" manifold_api= ManifoldAPI(auth=manifold_api_session_auth) if debug: print 'manifoldproxy.proxy: sending to backend', manifold_query answer=manifold_api.send_manifold_query (manifold_query) - if debug: - try: print "received answer from backend with %d rows"%len(answer) - except: print "received answer from backend - can't say len" + if debug: print 'manifoldproxy.proxy: received from backend with code', answer['code'] json_answer=json.dumps(answer) if (debug): with (file(offline_filename,"w")) as f: @@ -74,8 +72,8 @@ with the query passed using POST""" if debug_spin: import time time.sleep(debug_spin) - # return json-encoded answer return HttpResponse (json_answer, mimetype="application/json") + except: import traceback traceback.print_exc()