catch CalledProcessError in uploader wifi check

pull/984/head
Willem Melching 2020-01-20 10:57:08 -08:00
parent 79122ae662
commit 6adbe24d4c
1 changed files with 1 additions and 1 deletions

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():