mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1938610 [news downloads fail](https://bugs.launchpad.net/calibre/+bug/1938610)
This commit is contained in:
parent
d35713e516
commit
f3197df38f
@ -57,7 +57,7 @@ class LinuxNetworkStatus:
|
|||||||
del self.connection
|
del self.connection
|
||||||
|
|
||||||
def nm(self):
|
def nm(self):
|
||||||
with suppress(RuntimeError):
|
with suppress(Exception):
|
||||||
self.connect('SYSTEM')
|
self.connect('SYSTEM')
|
||||||
return self.NM_XDP_CONNECTIVITY_MAP.get(self.send(self.nm_call()), 4)
|
return self.NM_XDP_CONNECTIVITY_MAP.get(self.send(self.nm_call()), 4)
|
||||||
if hasattr(self, 'connection'):
|
if hasattr(self, 'connection'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user