Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
this won't ever fire, since getattr() will raise on error.
  • Loading branch information
girst committed Nov 19, 2020
1 parent 4ec107c commit 74d405f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mopidy_spotify/playlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ def _playlist_edit(self, playlist, method, **kwargs):
playlist_id = self._get_playlist_id_from_uri(playlist.uri)
url = f'playlists/{playlist_id}/tracks'
method = getattr(self._backend._web_client, method.lower())
if not method:
raise AttributeError(f'Invalid HTTP method "{method}"')

logger.debug(f'API request: {method} {url}')
response = method(url, json=kwargs)
Expand Down

0 comments on commit 74d405f

Please sign in to comment.