Rubin16 added a comment.

    Python 3.6.9 (default, Jul 17 2020, 12:50:27)
    [GCC 8.4.0]
    LOADING SITE wikipedia:ru VERSION: 1.36.0-wmf.13
    Found 1 wikipedia:ru processes running, including this one.
    WARNING: /home/paws/reflinks2.py:498: ResourceWarning: unclosed file 
<_io.BufferedReader name='404-links.txt'>
      listof404pages, 'r', 'latin_1').read()
    
    Retrieving 50 pages from wikipedia:ru.
    No changes were needed on [[Центральная избирательная комиссия Республики 
Беларусь]]
    Traceback (most recent call last):
      File "/home/paws/reflinks2.py", line 542, in run
        ref.url, use_fake_user_agent=self._use_fake_user_agent)
      File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1450, in wrapper
        return obj(*__args, **__kw)
      File "/srv/paws/pwb/pywikibot/comms/http.py", line 501, in fetch
        request.data = response
      File "/srv/paws/pwb/pywikibot/comms/threadedhttp.py", line 71, in data
        callback(self)
      File "/srv/paws/pwb/pywikibot/comms/http.py", line 349, in 
error_handling_callback
        raise Server414Error('Too long GET request')
    pywikibot.exceptions.Server414Error: Too long GET request
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/srv/paws/pwb/pwb.py", line 363, in <module>
        if not main():
      File "/srv/paws/pwb/pwb.py", line 358, in main
        file_package)
      File "/srv/paws/pwb/pwb.py", line 75, in run_python_file
        main_mod.__dict__)
      File "/home/paws/reflinks2.py", line 823, in <module>
        main()
      File "/home/paws/reflinks2.py", line 819, in main
        bot.run()
      File "/home/paws/reflinks2.py", line 620, in run
        except pywikibot.Server414Error as e:
      File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1708, in 
__getattr__
        return getattr(self._module, attr)
    AttributeError: module 'pywikibot' has no attribute 'Server414Error'
    Dropped throttle(s).
    Closing network session.
    CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>
    Network session closed.
    @PAWS:~$

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

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

To: Rubin16
Cc: Mpaa, Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, 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