aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler_worker.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/sandcrawler_worker.py')
-rwxr-xr-xpython/sandcrawler_worker.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/sandcrawler_worker.py b/python/sandcrawler_worker.py
index b164b8e..12b8bb9 100755
--- a/python/sandcrawler_worker.py
+++ b/python/sandcrawler_worker.py
@@ -15,7 +15,11 @@ import raven
from sandcrawler import *
# Yep, a global. Gets DSN from `SENTRY_DSN` environment variable
-sentry_client = raven.Client()
+try:
+ git_sha = raven.fetch_git_sha('..')
+except Exception as e:
+ git_sha = None
+sentry_client = raven.Client(release=git_sha)
def run_grobid_extract(args):