Commit 3968e117 by kimth

Simplify dict load in xqueue_callback

parent 22af531b
...@@ -211,7 +211,7 @@ def xqueue_callback(request, userid, id, dispatch): ...@@ -211,7 +211,7 @@ def xqueue_callback(request, userid, id, dispatch):
# Parse xqueue response # Parse xqueue response
get = request.POST.copy() get = request.POST.copy()
try: try:
header = json.loads(get.pop('xqueue_header')[0]) # 'dict' header = json.loads(get['xqueue_header'])
except Exception as err: except Exception as err:
msg = "Error in xqueue_callback %s: Invalid return format" % err msg = "Error in xqueue_callback %s: Invalid return format" % err
raise Exception(msg) raise Exception(msg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment