more generic catch in uploader and thermald

old-commit-hash: 891c4cabb8
commatwo_master
Willem Melching 5 years ago
parent 69be4cf7df
commit 1d39b5a646
  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