more generic catch in uploader and thermald

This commit is contained in:
Willem Melching
2020-02-21 15:02:24 -08:00
parent 3f25826326
commit 891c4cabb8
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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