Call dbus dependent code only if dbus imported
Addresses another symptom of mopidy/mopidy#1335
This commit is contained in:
parent
128de6cd01
commit
d210f3223f
@ -58,6 +58,7 @@ class Zeroconf(object):
|
||||
self.display_hostname = None
|
||||
self.name = None
|
||||
|
||||
if dbus:
|
||||
try:
|
||||
self.bus = dbus.SystemBus()
|
||||
self.server = dbus.Interface(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user