From 7bea847c83c3da1f2f465cfb672e14495dd74d20 Mon Sep 17 00:00:00 2001 From: kaliko Date: Fri, 28 Oct 2022 09:06:02 +0200 Subject: [PATCH] Revert "Catch uncaught socket.timeout (OSError subclass)." This reverts commit 36db5e965f1e8dba54b42e31082709b914dd5194. As mention in #63, this patch does not fixed the issue. --- sima/mpdclient.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sima/mpdclient.py b/sima/mpdclient.py index cced48c..b50df91 100644 --- a/sima/mpdclient.py +++ b/sima/mpdclient.py @@ -189,13 +189,7 @@ class MPD(MPDClient): self.log.warning('Use of MusicBrainzIdentifier disabled!') self.log.info('Consider using MusicBrainzIdentifier for your music library') self.use_mbid = Meta.use_mbid = False - # TODO: Why do I need to intercept OSError here? - # why is it not wrapped in PlayerError in __getattr__? - # (cf. commit message for more) - try: - self._reset_cache() - except OSError as err: - raise PlayerError(f'Error during cache init: {err}') from err + self._reset_cache() # ######### / Overriding MPDClient ######### def _reset_cache(self): -- 2.39.2