Skip to content

Commit f9fc0e5

Browse files
committed
Refactor.
1 parent 60f4e82 commit f9fc0e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

asyncio_tutorial/fetcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ async def fetch_and_save_url(
2626
.replace("; charset=UTF-8", "")
2727
.replace("text/", "")
2828
)
29-
LOGGER.info(f"Successfully fetched URL {i + 1} of {total_count}: {url}")
3029
await write_file(url, body, filetype, directory)
30+
LOGGER.info(f"Fetched URL {i + 1} of {total_count}: {url}")
3131
except InvalidURL as e:
3232
LOGGER.error(f"Unable to fetch invalid URL `{url}`: {e}")
3333
except ClientError as e:

0 commit comments

Comments
 (0)