diff --git a/selfdrive/car/car_helpers.py b/selfdrive/car/car_helpers.py index 7fb756a3e01158..d4c6a2dc17c39d 100644 --- a/selfdrive/car/car_helpers.py +++ b/selfdrive/car/car_helpers.py @@ -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 @@ -183,7 +184,7 @@ 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): @@ -191,7 +192,7 @@ def crash_log(candidate): if is_connected_to_internet(): crash.capture_warning("fingerprinted %s" % candidate) break - + def crash_log2(fingerprints, fw): while True: if is_connected_to_internet(): diff --git a/selfdrive/car/hyundai/values.py b/selfdrive/car/hyundai/values.py index 9f7f1f9ecff5a5..bb6716626a08b4 100644 --- a/selfdrive/car/hyundai/values.py +++ b/selfdrive/car/hyundai/values.py @@ -161,7 +161,7 @@ class Buttons: } # Don't use these fingerprints for fingerprinting, they are still used for ECU detection -IGNORED_FINGERPRINTS = [CAR.VELOSTER, CAR.GENESIS_G70, CAR.KONA] +IGNORED_FINGERPRINTS = [CAR.VELOSTER, CAR.KONA] FW_VERSIONS = { CAR.SONATA: {