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

Bug #315897 reported by Marco Rodrigues
2
Affects Status Importance Assigned to Milestone
Entertainer Media Center
Triaged
Low
Unassigned

Bug Description

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

TESTCASE:
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/user_interface.py", line 474, in handle_keyboard_event
    self.handle_user_event(UserEvent(UserEvent.PLAYER_PLAY_PAUSE))
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/gui/user_interface.py", 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/music_screen.py", line 107, in is_interested_in_play_action
    if self.tab_group.tab("artists").is_active() or \
AttributeError: 'MusicScreen' object has no attribute 'tab_group'

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.