AttributeError: 'MusicScreen' object has no attribute 'tab_group'

Bug #315897 reported by Marco Rodrigues on 2009-01-10
Affects Status Importance Assigned to Milestone
Entertainer Media Center

Bug Description

I'm using version 0.3 and I've no files associated with entertainer content manager, so music is empty.

1- Select menu "Music"
2- Press key "p" and it shows this traceback.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/", line 474, in handle_keyboard_event
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/", line 507, in handle_user_event
    if self.current.is_interested_in_play_action():
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/screens/", line 107, in is_interested_in_play_action
    if"artists").is_active() or \
AttributeError: 'MusicScreen' object has no attribute 'tab_group'

Matt Layman (mblayman) wrote :

An additional check is needed in the is_interested_in_play_action method for when the number of tracks == 0. This should cause a return before the method gets the tab group (which won't be defined unless there are actual tracks, see the init method).

Changed in entertainer:
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers