From 7724c661a4ecf951c4c0573a476d3d64ca57b25a Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Thu, 30 Oct 2025 10:49:51 -0400 Subject: [PATCH] hopefully...this works --- beetsplug/spotify.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index d86ddb9e4..a8126b852 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -193,8 +193,7 @@ class SpotifyPlugin( response.raise_for_status() except requests.exceptions.HTTPError as e: raise ui.UserError( - f"Spotify authorization failed: {e}\n" - f"{response.text}" + f"Spotify authorization failed: {e}\n{response.text}" ) self.access_token = response.json()["access_token"] @@ -451,9 +450,7 @@ class SpotifyPlugin( query_type: Literal["album", "track"], filters: SearchFilter, query_string: str = "", - ) -> Sequence[ - SearchResponseAlbums | SearchResponseTracks - ]: + ) -> Sequence[SearchResponseAlbums | SearchResponseTracks]: """Query the Spotify Search API for the specified ``query_string``, applying the provided ``filters``. @@ -467,9 +464,7 @@ class SpotifyPlugin( filters=filters, query_string=query_string ) - self._log.debug( - "Searching {.data_source} for '{}'", self, query - ) + self._log.debug("Searching {.data_source} for '{}'", self, query) try: response = self._handle_response( "get",