>>> http.fetch(uri='http://getstatuscode.com/301') Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner self.run() File "pywikibot/comms/threadedhttp.py", line 486, in run item.data = self.http.request(*item.args, **item.kwargs) File "pywikibot/comms/threadedhttp.py", line 254, in request uri, method, body, headers, response, content, max_redirects) File "pywikibot/comms/threadedhttp.py", line 273, in _follow_redirect response, content) RedirectMissingLocation: Redirected but the response is missing a Location: header.
And the main thread doesnt return.
This exception is thrown by threadedhttp, whereas threadedhttp normally returns the exception to be passed back to the main thread.