Skip to content

Commit

Permalink
sentry username fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed May 6, 2019
1 parent 3b12df4 commit 61b73cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/crash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 61b73cd

Please sign in to comment.