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