mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add NameError to exception in avahi_announce beacon
Fixes #38684 If you have dbus installed, but not avahi, you will get a NameError in the dbus.Interface call. We need to catch this situation and not stacktrace when the beacon gets loaded.
This commit is contained in:
parent
cfd82d1631
commit
db60bed24c
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ try:
|
|||
GROUP = dbus.Interface(BUS.get_object(avahi.DBUS_NAME, SERVER.EntryGroupNew()),
|
||||
avahi.DBUS_INTERFACE_ENTRY_GROUP)
|
||||
HAS_DBUS = True
|
||||
except ImportError:
|
||||
except (ImportError, NameError):
|
||||
HAS_DBUS = False
|
||||
except DBusException:
|
||||
HAS_DBUS = False
|
||||
|
|
Loading…
Add table
Reference in a new issue