Skip to content

Commit

Permalink
Merge pull request commaai#386 from arne182/release2
Browse files Browse the repository at this point in the history
update to latest release2
  • Loading branch information
arne182 authored Jun 14, 2019
2 parents 5318da5 + fd69885 commit 8688abd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ selfdrive/test/tests/plant/out
selfdrive/visiond/visiond
selfdrive/visiond/visiond-normal
/src/
apk/ai.comma.plus.offroad.apk
openpilot
selfdrive/data_collection/df-data
selfdrive/data_collection/gps-data

one
2 changes: 1 addition & 1 deletion checkCustomAPK.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def waitForConnection():

if not path_exists:
print "%s does not exist, installing" % apk_dir
waitForconnection()
waitForConnection()
os.system("curl -L %s | python" % install_script)
else:
print "APK already installed"
31 changes: 13 additions & 18 deletions selfdrive/crash.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,30 @@ def install():
from raven import Client
from raven.transport.http import HTTPTransport

error_tags = {'dirty': dirty, 'branch': 'unknown'}
error_tags = {'dirty': dirty, 'username': 'char_error'}

try:
with open("/data/data/ai.comma.plus.offroad/files/persistStore/persist-auth", "r") as f:
auth = json.loads(f.read())
auth = json.loads(auth['commaUser'])
try:
error_tags['username'] = ''.join(char for char in auth['username'].decode('utf-8', 'ignore') if char.isalnum())
except:
error_tags['username'] = "char_error"
try:
error_tags['email'] = auth['email']
except:
pass
tags = ['username', 'email']
for tag in tags:
try:
error_tags[tag] = ''.join(char for char in auth[tag].decode('utf-8', 'ignore') if char.isalnum())
except:
pass
except:
pass

try:
with open("/data/params/d/CommunityPilotUser", "r") as f:
auth = json.loads(f.read())

try:
error_tags['username'] = ''.join(char for char in auth['username'].decode('utf-8', 'ignore') if char.isalnum())
except:
error_tags['username'] = "char_error"
try:
error_tags['email'] = auth['email']
except:
pass
tags = ['username', 'email']
for tag in tags:
try:
error_tags[tag] = ''.join(char for char in auth[tag].decode('utf-8', 'ignore') if char.isalnum())
except:
pass
except:
pass

Expand Down

0 comments on commit 8688abd

Please sign in to comment.