mirror of
https://github.com/borgbase/vorta
synced 2024-12-21 23:33:13 +00:00
Avoid checking for metered network, if there is no wifi (#2141)
This commit is contained in:
parent
6bec467e44
commit
64586dff07
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,11 @@
|
|||
class DarwinNetworkStatus(NetworkStatusMonitor):
|
||||
def is_network_metered(self) -> bool:
|
||||
interface: CWInterface = self._get_wifi_interface()
|
||||
|
||||
# If there is no Wifi at all.
|
||||
if interface is None:
|
||||
return False
|
||||
|
||||
network: Optional[CWNetwork] = interface.lastNetworkJoined()
|
||||
|
||||
if network:
|
||||
|
|
Loading…
Reference in a new issue