more generic catch in uploader and thermald

pull/1146/head
Willem Melching 5 years ago
parent 3f25826326
commit 891c4cabb8
  1. 2
      selfdrive/loggerd/uploader.py
  2. 2
      selfdrive/thermald.py

@ -72,7 +72,7 @@ def is_on_wifi():
if result is None:
return True
return 'WIFI' in result
except (AttributeError, subprocess.CalledProcessError):
except Exception:
cloudlog.exception("is_on_wifi failed")
return False

@ -196,7 +196,7 @@ def thermald_thread():
if (count % int(10. / DT_TRML)) == 0:
try:
network_type = get_network_type()
except subprocess.CalledProcessError:
except Exception:
pass
msg.thermal.freeSpace = get_available_percent(default=100.0) / 100.0

Loading…
Cancel
Save