Skip to content

timeout error isn't caught #1

@n-kb

Description

@n-kb

Shouldn't the timeout error catch this?

  File "scrapers/se-scrapername.py", line 77, in <module>
    scrapername.run()
  File "/home/nkb/code/RentsWatch/venv/local/lib/python2.7/site-packages/rentswatch_scraper/scraper.py", line 79, in run
    self.fetch_series()
  File "/home/nkb/code/RentsWatch/venv/local/lib/python2.7/site-packages/rentswatch_scraper/scraper.py", line 133, in fetch_series
    series = self.get_series()
  File "/home/nkb/code/RentsWatch/venv/local/lib/python2.7/site-packages/rentswatch_scraper/scraper.py", line 129, in get_series
    content = self.transform_page( fetch_page( self.series_url ) )
  File "/home/nkb/code/RentsWatch/venv/local/lib/python2.7/site-packages/rentswatch_scraper/browser.py", line 45, in fetch_page
    return response.read()
  File "/usr/lib/python2.7/socket.py", line 351, in read
    data = self._sock.recv(rbufsize)
  File "/usr/lib/python2.7/httplib.py", line 573, in read
    s = self.fp.read(amt)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
socket.timeout: timed out

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions