Simplify dict load in xqueue_callback

This commit is contained in:
kimth
2012-07-31 10:42:32 -04:00
parent 22af531b0b
commit 3968e117e1

View File

@@ -211,7 +211,7 @@ def xqueue_callback(request, userid, id, dispatch):
# Parse xqueue response
get = request.POST.copy()
try:
header = json.loads(get.pop('xqueue_header')[0]) # 'dict'
header = json.loads(get['xqueue_header'])
except Exception as err:
msg = "Error in xqueue_callback %s: Invalid return format" % err
raise Exception(msg)