chore: Refactor get_url_response_bytes method to handle HTTP errors

This commit is contained in:
Rafael Moraes 2024-06-02 21:20:38 -03:00
parent 5990e5f722
commit 85c1fdbfbb

View File

@ -382,7 +382,9 @@ class Downloader:
@staticmethod
@functools.lru_cache()
def get_url_response_bytes(url: str) -> bytes:
return requests.get(url).content
response = requests.get(url)
response.raise_for_status()
return response.content
def apply_tags(
self,