Skip to content

Commit

Permalink
F821 and F722
Browse files Browse the repository at this point in the history
  • Loading branch information
rav4kumar committed Jan 13, 2021
1 parent bac5938 commit 40a8de0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions selfdrive/car/car_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import threading
import requests
from common.params import Params, put_nonblocking
from common.basedir import BASEDIR
from selfdrive.version import comma_remote, tested_branch
Expand Down Expand Up @@ -183,15 +184,15 @@ def is_connected_to_internet(timeout=5):
try:
requests.get("https://sentry.io", timeout=timeout)
return True
except:
except Exception:
return False

def crash_log(candidate):
while True:
if is_connected_to_internet():
crash.capture_warning("fingerprinted %s" % candidate)
break

def crash_log2(fingerprints, fw):
while True:
if is_connected_to_internet():
Expand Down

0 comments on commit 40a8de0

Please sign in to comment.