Rubin16 added a comment.
@Xqt
@PAWS:~$ pwb.py ~/reflinks2.py -start:Mark_of_the_Unicorn -verbose
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0]
LOADING SITE wikipedia:ru VERSION: 1.36.0-wmf.10
LOADING SITE wikipedia:ru VERSION: 1.36.0-wmf.10
Found 2 wikipedia:ru processes running, including this one.
WARNING: /home/paws/reflinks2.py:499: ResourceWarning: unclosed file
<_io.BufferedReader name='404-links.txt'>
dead_links = codecs.open(listof404pages, 'r', 'latin_1').read()
Retrieving 50 pages from wikipedia:ru.
No changes were needed on [[Mark of the Unicorn]]
Traceback (most recent call last):
File "/srv/paws/pwb/pwb.py", line 360, in <module>
if not main():
File "/srv/paws/pwb/pwb.py", line 355, in main
file_package)
File "/srv/paws/pwb/pwb.py", line 74, in run_python_file
main_mod.__dict__)
File "/home/paws/reflinks2.py", line 818, in <module>
main()
File "/home/paws/reflinks2.py", line 814, in main
bot.run()
File "/home/paws/reflinks2.py", line 637, in run
tmp = s.group('enc').strip("\"' ").lower()
TypeError: a bytes-like object is required, not 'str'
Dropped throttle(s).
Closing network session.
CRITICAL: Exiting due to uncaught exception <class 'TypeError'>
Network session closed.
TASK DETAIL
https://phabricator.wikimedia.org/T264575
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, Rubin16
Cc: Aklapper, pywikibot-bugs-list, Rubin16, JohnsonLee01, SHEKH, Dijkstra,
Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301,
joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420,
Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa,
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs