Skip to content

Instantly share code, notes, and snippets.

@alexschultze
Created March 26, 2015 00:04
Show Gist options
  • Save alexschultze/5c94bb13422c44d06161 to your computer and use it in GitHub Desktop.
Save alexschultze/5c94bb13422c44d06161 to your computer and use it in GitHub Desktop.
Crashes because if visibility setting
/usr/bin/python2.7 /home/alex/PycharmProjects/untitled/start.py
299792.458
Traceback (most recent call last):
File "/home/alex/PycharmProjects/untitled/start.py", line 49, in <module>
wetterda.updateWeather()
File "/home/alex/PycharmProjects/untitled/start.py", line 20, in updateWeather
self.obs = self.owm.weather_at_coords(self.lat, self.lon)
File "/usr/local/lib/python2.7/dist-packages/pyowm/webapi25/owm25.py", line 179, in weather_at_coords
return self._parsers['observation'].parse_JSON(json_data)
File "/usr/local/lib/python2.7/dist-packages/pyowm/webapi25/observationparser.py", line 60, in parse_JSON
w = weather.weather_from_dictionary(d)
File "/usr/local/lib/python2.7/dist-packages/pyowm/webapi25/weather.py", line 430, in weather_from_dictionary
if 'distance' in d['visibility']:
TypeError: argument of type 'int' is not iterable
Process finished with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment