XZise added a subscriber: XZise.
XZise added a comment.
Hmm I where does Файл:Groz-14.PNG
<https://ru.wikipedia.org/wiki/%D0%A4%D0%B0%D0%B9%D0%BB:Groz-14.PNG> have a now
commons template? In line 333 of nowcommons.py it's searching through the
contents of that page and looking for the template. As that page is not hosted
on the Russian Wikipedia anymore that won't work.
>>> s = pywikibot.Site('ru', 'wikipedia')
>>> p = pywikibot.Page(s, 'Файл:Groz-14.PNG')
>>> list(p.templatesWithParams())
[]
And (if I interpret that correctly), the file was moved on 2015-04-13 and
you've run your script 13 days later.
TASK DETAIL
https://phabricator.wikimedia.org/T97248
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign
<username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: XZise, Aklapper, Rubin16, jayvdb, pywikipedia-bugs
_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs