Drop the redundant HTTP error class from the retry catch

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
imacatandClaude Opus 5 committed 2026-08-17 22:38:39 +08:00
1 parent 62adf7f937
commit ea9df52bc3
1 file changed
+1 -2
@@ -647,8 +647,7 @@ class ArtistFetcher:
with urllib.request.urlopen(
request, timeout=timeout) as response:
return response.read()
except (urllib.error.HTTPError, TimeoutError,
urllib.error.URLError) as error:
except (TimeoutError, urllib.error.URLError) as error:
reason = self.__retry_reason(error)
if reason is None:
raise