mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-03-03 14:13:53 +08:00
more generic catch in uploader and thermald
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user