Skip to content

Instantly share code, notes, and snippets.

@lyw07
Last active October 29, 2019 20:41
Show Gist options
  • Save lyw07/57233b6cdc52e8b2645a450a83268881 to your computer and use it in GitHub Desktop.
Save lyw07/57233b6cdc52e8b2645a450a83268881 to your computer and use it in GitHub Desktop.
diff --git a/src/iceqube/worker.py b/src/iceqube/worker.py
index 4a907f4..3341883 100644
--- a/src/iceqube/worker.py
+++ b/src/iceqube/worker.py
@@ -65,6 +65,8 @@ class Worker(object):
self.report_cancelled(job.job_id)
return
except Exception as e:
+ from sentry_sdk import capture_exception
+ capture_exception(e)
self.report_error(job.job_id, e, e.traceback)
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment