catch CalledProcessError in uploader wifi check

This commit is contained in:
Willem Melching
2020-01-20 10:57:08 -08:00
parent 79122ae662
commit 6adbe24d4c
+1 -1
View File
@@ -71,7 +71,7 @@ def is_on_wifi():
if result is None:
return True
return 'WIFI' in result
except AttributeError:
except (AttributeError, subprocess.CalledProcessError):
return False
def is_on_hotspot():