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:
2026-08-17 21:47:36 +08:00
co-authored by Claude Opus 5
parent f1015200f2
commit ddaf0cc1be
@@ -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