This commit is contained in:
Kovid Goyal 2021-07-31 18:22:48 +05:30
parent d35713e516
commit f3197df38f
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -57,7 +57,7 @@ def xdp(self):
del self.connection
def nm(self):
with suppress(RuntimeError):
with suppress(Exception):
self.connect('SYSTEM')
return self.NM_XDP_CONNECTIVITY_MAP.get(self.send(self.nm_call()), 4)
if hasattr(self, 'connection'):