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:
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
|
||||
|
||||
Reference in new issue
Block a user