Merge pull request #11 from de3z1e/patch-1

Fixed TypeError Issue When Submitting to Grader
This commit is contained in:
Gerges Dib
2018-10-08 13:48:55 -04:00
committed by GitHub

View File

@@ -30,7 +30,7 @@ class SubmissionBase:
for part_id, result in self:
parts[str(part_id)] = {'output': sprintf('%0.5f ', result)}
result, response = self.request(parts)
response = json.loads(response)
response = json.loads(response.decode("utf-8"))
# if an error was returned, print it and stop
if 'errorMessage' in response: