diff --git a/platypush/backend/music/spotify/__init__.py b/platypush/backend/music/spotify/__init__.py index 5bcf5fbb2..cd59432f8 100644 --- a/platypush/backend/music/spotify/__init__.py +++ b/platypush/backend/music/spotify/__init__.py @@ -204,7 +204,8 @@ class MusicSpotifyBackend(Backend, SpotifyMixin): while not self.should_stop(): try: - self._librespot_proc.wait(timeout=1.0) + if self._librespot_proc: + self._librespot_proc.wait(timeout=1.0) except subprocess.TimeoutExpired: pass except Exception as e: