Skip to content

Instantly share code, notes, and snippets.

@kyleterry
Created November 24, 2014 20:31
Show Gist options
  • Save kyleterry/820ae5dc6062aa80bb36 to your computer and use it in GitHub Desktop.
Save kyleterry/820ae5dc6062aa80bb36 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "build/bdist.linux-x86_64/egg/tenykswunderground/main.py", line 83, in handle_weather_alerts
location_string = self.fetch_location(location)
File "build/bdist.linux-x86_64/egg/tenykswunderground/main.py", line 43, in fetch_location
search = requests.get(SEARCH_URL_TEMPLATE.format(location=location_query))
File "/usr/lib64/python2.7/site-packages/requests/api.py", line 55, in get
return request('get', url, **kwargs)
File "/usr/lib64/python2.7/site-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib64/python2.7/site-packages/requests/sessions.py", line 456, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib64/python2.7/site-packages/requests/sessions.py", line 559, in send
r = adapter.send(request, **kwargs)
File "/usr/lib64/python2.7/site-packages/requests/adapters.py", line 375, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='autocomplete.wunderground.com', port=80): Max retries exceeded with url: /aq?query=97217 (Caused by <class 'socket.error'>: [Errno 104] Connection reset by peer)
<Greenlet at 0x7fc55f67deb0: <bound method TenyksWeather.handle_weather_alerts of <tenykswunderground.main.TenyksWeather object at 0x7fc55f63c0d0>>({u'target': u'#infoforcefeed', u'connection': u'fr, <_sre.SRE_Match object at 0x7fc55f676f48>)> failed with ConnectionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment