Remove try catch that can never be triggered (go code coverage)

This commit is contained in:
Thomas Adamcik 2010-04-15 00:12:07 +02:00
parent ba6351a983
commit 1daf830741

View File

@ -386,11 +386,8 @@ class BasePlaybackController(object):
if self.current_track is None or self.playlist_position == 0:
return None
try:
return self.backend.current_playlist.playlist.tracks[
self.playlist_position - 1]
except IndexError:
return None
return self.backend.current_playlist.playlist.tracks[
self.playlist_position - 1]
@property
def state(self):