Skip to content

Commit

Permalink
Fix invalid exception handling in create_submission
Browse files Browse the repository at this point in the history
Closes #35.
  • Loading branch information
PasiSa committed Sep 14, 2022
1 parent 5f911a3 commit f4b4662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def create_submission(task, submission_key, course_key, submission_api_url, matc
submission = insert_submission(exercise, submission_key, submitter_id, data)
prepare_submission(submission, matching_start_time)
except InsertError as err:
write_error(err.message, 'create_submission')
write_error(str(err), 'create_submission')
return


Expand Down

0 comments on commit f4b4662

Please sign in to comment.