|
|
@ -252,7 +252,7 @@ def wttr(location = None):
|
|
|
|
log("%s %s %s %s" % (ip, user_agent, orig_location, location))
|
|
|
|
log("%s %s %s %s" % (ip, user_agent, orig_location, location))
|
|
|
|
return get_wetter( location, ip, html=html_output )
|
|
|
|
return get_wetter( location, ip, html=html_output )
|
|
|
|
except Exception, e:
|
|
|
|
except Exception, e:
|
|
|
|
logging.error("Exception has occured", exc_info=1)
|
|
|
|
logging.error("Exception has occurred", exc_info=1)
|
|
|
|
return str(e).rstrip()+"\n"
|
|
|
|
return str(e).rstrip()+"\n"
|
|
|
|
|
|
|
|
|
|
|
|
server = WSGIServer(("", 8002), app)
|
|
|
|
server = WSGIServer(("", 8002), app)
|
|
|
|