Pitel napsal/a:
Asi zase neco zmenili...
Traceback (most recent call last): File "./pyggs.py", line 637, in <module> pyggs.run() File "./pyggs.py", line 344, in run self.plugins[plugin].run() File "/home/pitel/pyggs/plugins/elevations.py", line 38, in run caches = self.cache.storage.getDetails(myFinds.keys()) File "/home/pitel/pyggs/plugins/cache.py", line 226, in getDetails self.plugin.master.parse("cache", guid) File "./pyggs.py", line 383, in parse handler(parser) File "/home/pitel/pyggs/plugins/cache.py", line 123, in parseCache details["elevation"] = self.getElevation(details["lat"], details["lon"]) File "/home/pitel/pyggs/plugins/cache.py", line 99, in getElevation elevation = int(elevation.read().strip()) ValueError: invalid literal for int() with base 10: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd ">\r\n<html>\r\n<head>\r\n<title>GeoNames</title>\r\n<link rel="search" type="application/opensearchdescrip'
Tohle neni gc webem,mozna... to se nejak jinak chova ws.geonames.org ... pri chybnem dotazu to vrati misto cisla kompletni html chybovou stranku ... a s tim ten script nepocita, je tam v Pyggs/plugins/cache.py: int(elevation.read().strip()) ... a tohle int neni - ten stav by se mel nejak osetrit....