AttributeError: 'NoneType' object has no attribute 'get_type'

Bug #315899 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 photographs is empty.

TESTCASE:
1- Select menu "Photographs"
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 514, in handle_user_event
    self.player.play()
  File "/usr/lib/python2.5/site-packages/entertainerlib/frontend/media_player.py", line 183, in play
    if self.media.get_type() == Playable.AUDIO_STREAM:
AttributeError: 'NoneType' object has no attribute 'get_type'

Revision history for this message
Marco Rodrigues (gothicx) wrote :

I also get the same error in the main menu if I press "p".

Revision history for this message
Matt Layman (mblayman) wrote :

photoalbums_screen has not defined it's is_interested_in_play_action method. If this method was defined so that it would return False when there are no photos, then this exception should go away. The exception is mostly harmless, but I think it might cause the odd behavior of being able to play a paused music or video if you were on the photo albums screen, and that would be a pretty weird.

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.