From 67b7764b7f18754e9e6ddf0c99d6307e45974abd Mon Sep 17 00:00:00 2001 From: arne182 Date: Fri, 22 Mar 2019 09:24:49 +0100 Subject: [PATCH] Fix type error --- selfdrive/crash.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/selfdrive/crash.py b/selfdrive/crash.py index fb53d0f6b4d574..c2e64484ac59ee 100644 --- a/selfdrive/crash.py +++ b/selfdrive/crash.py @@ -24,9 +24,12 @@ def install(): auth = json.loads(auth['commaUser']) - client = Client('https://137e8e621f114f858f4c392c52e18c6d:8aba82f49af040c8aac45e95a8484970@sentry.io/1404547', - install_sys_hook=False, transport=HTTPTransport, release=version, tags={'dirty': dirty, 'email': auth['email'], 'username': auth['username']}) - + try: + client = Client('https://137e8e621f114f858f4c392c52e18c6d:8aba82f49af040c8aac45e95a8484970@sentry.io/1404547',install_sys_hook=False, transport=HTTPTransport, release=version, tags={'dirty': dirty, 'email': auth['email'], 'username': auth['username']}) + except TypeError: + client = Client('https://137e8e621f114f858f4c392c52e18c6d:8aba82f49af040c8aac45e95a8484970@sentry.io/1404547',install_sys_hook=False, transport=HTTPTransport, release=version, tags={'dirty': dirty}) + pass + def capture_exception(*args, **kwargs): client.captureException(*args, **kwargs) cloudlog.error("crash", exc_info=kwargs.get('exc_info', 1))