Dalba added a comment.

I cannot reproduce it anymore. The strange thing is that running the following script on toolforge prints 100, while on my local computer prints 0.

import requests
error_count = 0
for i in range(100):
    r = requests.get('https://en.wikisource.org/w/index.php?title=Page%3APywikibot_test_page_3.jpg&action="">)
    try:
        assert 'prp-page-image' in r.text
    except AssertionError:
        error_count += 1
print(error_count)

Perhaps some caching mechanism is involved.


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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to