Commit 00a934a3 by Justin Riley

use requests' json() rather than json.loads

parent d653cd96
...@@ -44,7 +44,7 @@ class ProctorPanel(object): ...@@ -44,7 +44,7 @@ class ProctorPanel(object):
auth = (self.proc_user, self.proc_pass) auth = (self.proc_user, self.proc_pass)
ret = self.ses.get(url, verify=False, auth=auth, params={'problem': self.procset_name}) ret = self.ses.get(url, verify=False, auth=auth, params={'problem': self.procset_name})
try: try:
retdat = json.loads(ret.content) retdat = ret.json()
except Exception: except Exception:
log.error('bad return from proctor panel: ret.content={0}'.format(ret.content)) log.error('bad return from proctor panel: ret.content={0}'.format(ret.content))
retdat = {} retdat = {}
......
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