Fixing a stupid mistake.

This commit is contained in:
Dan 2021-11-11 11:45:35 -05:00
parent 197b75c6bf
commit f4f3842059

View File

@ -293,7 +293,7 @@ class WorkflowService(object):
# jsonify, and de-jsonify the data to mimic how data will be returned from the front end for forms and assures # jsonify, and de-jsonify the data to mimic how data will be returned from the front end for forms and assures
# we aren't generating something that can't be serialized. # we aren't generating something that can't be serialized.
try: try:
form_data_string = app.json_encoder().encode(o=task_api.data) form_data_string = app.json_encoder().encode(o=form_data)
except TypeError as te: except TypeError as te:
raise ApiError.from_task(code='serialize_error', raise ApiError.from_task(code='serialize_error',
message=f'Something cannot be serialized. Message is: {te}', message=f'Something cannot be serialized. Message is: {te}',