mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 16:23:46 +08:00
catch CalledProcessError in uploader wifi check
old-commit-hash: 6adbe24d4c
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user