catch CalledProcessError in uploader wifi check
parent
79122ae662
commit
6adbe24d4c
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue