From 72084e68351f24094928d6733ee1baa6b349cbe6 Mon Sep 17 00:00:00 2001 From: Nicolas KAROLAK <nicolas@karolak.fr> Date: Wed, 16 Oct 2019 09:53:14 +0000 Subject: [PATCH] not everyone use dbus... --- tests/test_dns_records.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_dns_records.py b/tests/test_dns_records.py index 6dff2ed7..b92d3687 100755 --- a/tests/test_dns_records.py +++ b/tests/test_dns_records.py @@ -35,10 +35,8 @@ def get_dns_servers() -> set: servers.extend( [":".join(map(str, dns[2])) for dns in bus_client.DNS if dns[1] == 10] ) # IPv6 - except Exception as dbus_err: - u.info("DBus method failed: {}".format(dbus_err)) - - # TODO: remove fallback methods below when the dbus one is confirmed to work everwhere + except: + pass # network-manager method if not len(servers) and subprocess.getstatusoutput("command -v nmcli")[0] == 0: -- GitLab