| Mpaa added a comment. |
I think patch in T94688 fixed the issue.
Now I get:
Traceback (most recent call last):
File "pwb.py", line 262, in <module>
if not main():
File "pwb.py", line 255, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 121, in run_python_file
main_mod.__dict__)
File "./scripts/reflinks.py", line 798, in <module>
main()
File "./scripts/reflinks.py", line 793, in main
bot.run()
File "./scripts/reflinks.py", line 588, in run
linkedpagetext = f.content
File "/home/user/python/core/pywikibot/comms/threadedhttp.py", line 182, in content
return self.decode(self.encoding)
File "/home/user/python/core/pywikibot/comms/threadedhttp.py", line 139, in encoding
if not self.charset and not self.header_encoding:
File "/home/user/python/core/pywikibot/comms/threadedhttp.py", line 121, in header_encoding
if not hasattr(self, '_header_encoding'):
File "/home/user/anaconda3/lib/python3.6/site-packages/requests/structures.py", line 54, in __getitem__
return self._store[key.lower()][1]
KeyError: 'content-type'
Dropped throttle(s).
<class 'KeyError'>
CRITICAL: Closing network session.
Network session closed.
(Pdb) self.response_headers
{'Date': 'Tue, 30 May 2017 20:03:29 GMT', 'Server': 'Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips', 'Last-Modified': 'Wed, 08 Feb 2006 19:49:40 GMT', 'ETag': '"338b0-40c4dcbea7d00"', 'Accept-Ranges': 'bytes', 'Content-Length': '211120', 'Keep-Alive': 'timeout=5, max=100', 'Connection': 'Keep-Alive'}Not all headers contain 'content-type'
TASK DETAIL
EMAIL PREFERENCES
To: Mpaa
Cc: Mpaa, Aklapper, pywikibot-bugs-list, Rubin16, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Sn1per, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: Mpaa, Aklapper, pywikibot-bugs-list, Rubin16, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Sn1per, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
