Dalba added a comment.

I can reproduce this issue.
In line 536 we have self._url_image = soup.find(class_='prp-page-image').
But the soup does not contain any element with prp-page-image class.

Here is the response.content value after fetching https://en.wikisource.org/w/index.php?title=Page%3APywikibot_test_page_3.jpg&action="">:

P6420 Page:Pywikibot test page 3.jpg

There is no prp-page-image.


TASK DETAIL
https://phabricator.wikimedia.org/T181913

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dalba
Cc: Aklapper, pywikibot-bugs-list, Dalba, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to