Skip to content

Commit

Permalink
Merge pull request #283 from MelbourneHighSchoolRobotics/sentry_errors
Browse files Browse the repository at this point in the history
Ensure unhandled exceptions are reported to sentry.
  • Loading branch information
glipR authored Jun 24, 2021
2 parents 8424c7a + 32e8660 commit 30c2212
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ev3sim/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ def action(result):
with open(join(ev3sim_folder, "error_log.txt"), "w") as f:
f.write(error)
print(f"An error occurred, check {join(ev3sim_folder, 'error_log.txt')} for details.")
sentry_sdk.capture_exception(e)

pygame.quit()
handler.is_running = False
Expand Down

0 comments on commit 30c2212

Please sign in to comment.