brokkr / poca

A fast, multithreaded and highly customizable command line podcast client, written in Python 3
GNU General Public License v3.0
23 stars 4 forks source link

feedparser.parse passes on http client error #149

Open brokkr opened 3 years ago

brokkr commented 3 years ago
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/home/mads/.virtualenvs/poca11/lib/python3.6/site-packages/poca/subupdate.py", line 34, in run
    subdata = self.target(*self.args)
  File "/home/mads/.virtualenvs/poca11/lib/python3.6/site-packages/poca/subupdate.py", line 75, in __init__
    feed = Feed(self.sub, self.jar, self.udeleted)
  File "/home/mads/.virtualenvs/poca11/lib/python3.6/site-packages/poca/subupdate.py", line 125, in __init__
    doc = feedparser.parse(sub.url.text, etag=etag, modified=modified)
  File "/home/mads/.virtualenvs/poca11/lib/python3.6/site-packages/feedparser/api.py", line 214, in parse
    data = _open_resource(url_file_stream_or_string, etag, modified, agent, referrer, handlers, request_headers, result)
  File "/home/mads/.virtualenvs/poca11/lib/python3.6/site-packages/feedparser/api.py", line 114, in _open_resource
    return http.get(url_file_stream_or_string, etag, modified, agent, referrer, handlers, request_headers, result)
  File "/home/mads/.virtualenvs/poca11/lib/python3.6/site-packages/feedparser/http.py", line 169, in get
    f = opener.open(request)
  File "/usr/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 1353, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.6/urllib/request.py", line 1328, in do_open
    r = h.getresponse()
  File "/usr/lib/python3.6/http/client.py", line 1373, in getresponse
    response.begin()
  File "/usr/lib/python3.6/http/client.py", line 311, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.6/http/client.py", line 280, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response