https://bugzilla.wikimedia.org/show_bug.cgi?id=70494
Bug ID: 70494
Summary: fileIsShared fails on non-commons sites
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: [email protected]
Reporter: [email protected]
Web browser: ---
Mobile Platform: ---
The following snippet:
import pywikibot
itwp = pywikibot.Site('it', 'wikipedia')
title = 'File:Sepp Maier 1.JPG'
pywikibot.ImagePage(itwp, title).fileIsShared()
should return True. However, after
https://github.com/wikimedia/pywikibot-core/commit/faf69ed5281c8da06f155711777bbea67d92f00a#diff-6db52cb863a71de75beda6cf2e90e235R1825,
it now raises
>>> pywikibot.ImagePage(itwp, title).fileIsShared()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/valhallasw/src/pywikibot-core/pywikibot/page.py", line 1864, in
fileIsShared
raise pywikibot.NoPage(self)
pywikibot.exceptions.NoPage: Page [[it:File:Sepp Maier 1.JPG]] doesn't exist.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l