From 08e7d136d83e8735a1ca05331b4a6003a657d222 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Sun, 22 Mar 2026 16:27:00 -0300 Subject: [PATCH] Remove optional Librespot import fallback --- votify/api/api.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/votify/api/api.py b/votify/api/api.py index 0242dd0..aa5c0f7 100644 --- a/votify/api/api.py +++ b/votify/api/api.py @@ -26,13 +26,9 @@ from .constants import ( WIDEVINE_LICENSE_API_URL, ) from .exceptions import VotifyRequestException +from .librespot import Librespot from .totp import Totp -try: - from .librespot import Librespot -except ImportError: - Librespot = None - logger = logging.getLogger(__name__) @@ -165,11 +161,6 @@ class SpotifyApi: def _initialize_librespot(self) -> None: if not self.skip_librespot: - if not Librespot: - raise ImportError( - "Librespot is not available. Make sure to install the 'librespot' extra." - ) - self.librespot = Librespot(access_token=self._access_token) else: self.librespot = None