From 61b73cdb0a5c143b6e16df2bba52e9be64634981 Mon Sep 17 00:00:00 2001 From: Shane Date: Sun, 5 May 2019 23:02:29 -0500 Subject: [PATCH] sentry username fix --- selfdrive/crash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/crash.py b/selfdrive/crash.py index 91af22fe0b28d2..85b3e0cfbe4681 100644 --- a/selfdrive/crash.py +++ b/selfdrive/crash.py @@ -28,9 +28,9 @@ def install(): auth = json.loads(f.read()) auth = json.loads(auth['commaUser']) try: - error_tags['username'] = auth['username'].decode('utf-8', 'ignore') + error_tags['username'] = ''.join(char for char in auth['username'].decode('utf-8', 'ignore') if char.isalnum()) except: - pass + error_tags['username'] = "char_error" try: error_tags['email'] = auth['email'] except: