gnome-prototypes-team / gnome-music

Gnome Music
https://live.gnome.org/Music
Other
5 stars 13 forks source link

Traceback when attempting to get properties over DBus #164

Closed grawity closed 11 years ago

grawity commented 11 years ago

When nothing is playing, attempts to get any MPRISv2 property return:

org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3.3/site-packages/gnomemusic/mpris.py", line 184, in Get
    return self.GetAll(interface_name)[property_name]
  File "/usr/lib/python3.3/site-packages/gnomemusic/mpris.py", line 217, in GetAll
    'CanGoNext': self.player.has_next(),
  File "/usr/lib/python3.3/site-packages/gnomemusic/player.py", line 174, in has_next
    tmp = self.currentTrack.copy()
AttributeError: 'NoneType' object has no attribute 'copy'
vrutkovs commented 11 years ago

Moved to BZ https://bugzilla.gnome.org/show_bug.cgi?id=705855, please subscribe and comment there