Remove try catch that can never be triggered (go code coverage)
This commit is contained in:
parent
ba6351a983
commit
1daf830741
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user