Skip to content

Commit 74d405f

Browse files
committed
remove dead code
this won't ever fire, since getattr() will raise on error.
1 parent 4ec107c commit 74d405f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mopidy_spotify/playlists.py

-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ def _playlist_edit(self, playlist, method, **kwargs):
119119
playlist_id = self._get_playlist_id_from_uri(playlist.uri)
120120
url = f'playlists/{playlist_id}/tracks'
121121
method = getattr(self._backend._web_client, method.lower())
122-
if not method:
123-
raise AttributeError(f'Invalid HTTP method "{method}"')
124122

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

0 commit comments

Comments
 (0)