Skip to content

Commit

Permalink
Merge pull request #18 from arne182/dynamic-follow
Browse files Browse the repository at this point in the history
Fix type error
  • Loading branch information
sshane authored Mar 22, 2019
2 parents 0df5ec9 + 67b7764 commit 3a0e246
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions selfdrive/crash.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ def install():

auth = json.loads(auth['commaUser'])

client = Client('https://137e8e621f114f858f4c392c52e18c6d:[email protected]/1404547',
install_sys_hook=False, transport=HTTPTransport, release=version, tags={'dirty': dirty, 'email': auth['email'], 'username': auth['username']})

try:
client = Client('https://137e8e621f114f858f4c392c52e18c6d:[email protected]/1404547',install_sys_hook=False, transport=HTTPTransport, release=version, tags={'dirty': dirty, 'email': auth['email'], 'username': auth['username']})
except TypeError:
client = Client('https://137e8e621f114f858f4c392c52e18c6d:[email protected]/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))
Expand Down

0 comments on commit 3a0e246

Please sign in to comment.