Commits

Luke Plant  committed a297ee3

Fixed crash if dbus not installed

  • Participants
  • Parent commits 2188661

Comments (0)

Files changed (1)

File 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()