Skip to content
Snippets Groups Projects
Commit 72084e68 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

not everyone use dbus...

parent 6536a73f
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment