Skip to content

Commit dbab500

Browse files
authoredJun 13, 2023
Sentry: only import sentry module if there are exceptions (commaai#148)
1 parent 2f835a9 commit dbab500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎selfdrive/manager/custom_dep.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import traceback
99
from common.basedir import BASEDIR
1010
from common.text_window import TextWindow
11-
import selfdrive.sentry as sentry
1211
from urllib.request import urlopen
1312
from glob import glob
1413
import subprocess
@@ -118,6 +117,7 @@ def install_dep(spinner):
118117
spinner.update("Waiting for internet")
119118
install_dep(spinner)
120119
except Exception:
120+
import selfdrive.sentry as sentry
121121
sentry.init(sentry.SentryProject.SELFDRIVE)
122122
traceback.print_exc()
123123
sentry.capture_exception()

0 commit comments

Comments
 (0)
Please sign in to comment.