Skip to content

Commit

Permalink
imagecopy.py: page.site is not callable
Browse files Browse the repository at this point in the history
Bug: T167062
Change-Id: I87fa6d1b0de0f5c4aafbc6e47abd82624ad5b599
  • Loading branch information
Mpaa committed Jun 5, 2017
1 parent b52f8f1 commit 02dbe77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/imagecopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def main(*args):
skip = False
if page.exists() and (page.namespace() == 6) and (
not page.isRedirectPage()):
imagepage = pywikibot.FilePage(page.site(), page.title())
imagepage = pywikibot.FilePage(page.site, page.title())

# First do autoskip.
if doiskip(imagepage.get()):
Expand Down

0 comments on commit 02dbe77

Please sign in to comment.