Skip to content

Commit

Permalink
Merge pull request #330 from re0wiki/dev
Browse files Browse the repository at this point in the history
fix re0-image script
  • Loading branch information
CCXXXI authored Sep 10, 2023
2 parents bfc48f3 + b8a2368 commit 4230f4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pywikibot
4 changes: 3 additions & 1 deletion scripts/re0_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def transfer_file(
logging.info("upload %s", title)
with TemporaryDirectory() as tmp_dir:
filename = path.join(tmp_dir, title)
source_page.download(filename)
if not source_page.download(filename):
logging.warning("download failed. title=%s", title)
return
target_page.upload(
filename,
comment=text,
Expand Down

0 comments on commit 4230f4f

Please sign in to comment.