Made a stupid mistake in a hot fix, causing the builds to fail.

This commit is contained in:
Dan 2021-08-17 10:14:49 -04:00
parent c831ee7e4a
commit 6ce560cc2d
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class ApiError(Exception):
# contain some invalid data that we can't return, so we can at least get the erro rmessage.
instance.task_data = task.data
try:
json.dumps(instance)
json.dumps(ApiErrorSchema().dump(instance))
except TypeError as te:
instance.task_data = {
'task_data_hidden': 'We were unable to serialize the task data when reporting this error'}