Skip to content

Commit 86b9a25

Browse files
authored
show where the comic is being downloaded to and the final filename in the script log
1 parent 0661494 commit 86b9a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

garfield.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def daterange(start, end):
4141
if not os.path.exists(file_path):
4242
try:
4343
with urllib.request.urlopen(image_url) as im:
44-
print(f"Downloading: {image_url}")
44+
print(f"Downloading {image_url} into {file_path}")
4545
with open(file_path, "wb") as save_file:
4646
save_file.write(im.read())
4747
except HTTPError as e:

0 commit comments

Comments
 (0)