Skip to content

Commit 0247281

Browse files
authored
fix: fix exception handling in fetch_and_save_url (#64)
1 parent 46db037 commit 0247281

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

update-lists.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,7 @@ async def fetch_and_save_url(url, output_dir):
131131
logger.info(f"downloaded {url}")
132132

133133
move_downloaded_file(temp_file.name, url, output_dir)
134-
except (
135-
aiohttp.ClientResponseError,
136-
aiohttp.client_exceptions.ClientConnectorError,
137-
):
134+
except aiohttp.ClientError:
138135
logging.exception(f"An exception happened while processing {url}")
139136

140137

0 commit comments

Comments
 (0)