Commits

Luke Plant committed a297ee3

Fixed crash if dbus not installed

Comments (0)

Files changed (1)

playerdo/backends/mpris.py

 
     @property
     def friendly_name(self):
-        import dbus
+        try:
+            import dbus
+        except ImportError:
+            return self._friendly_name
+
         retval = self._friendly_name
         try:
             l = get_sorted_candidate_buses()