Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeout error isn't caught #1

Open
n-kb opened this issue Nov 20, 2015 · 0 comments
Open

timeout error isn't caught #1

n-kb opened this issue Nov 20, 2015 · 0 comments
Assignees

Comments

@n-kb
Copy link
Contributor

n-kb commented Nov 20, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants