From c859ad0d53f74d1f8b69f0b446a86e2fb255f8ee Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Tue, 12 Jan 2016 10:02:14 -0800 Subject: [PATCH] weather: use https for the nominatim --- modules/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/weather.py b/modules/weather.py index 61c083e..1d5c7c6 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -17,7 +17,7 @@ r_from = re.compile(r'(?i)([+-]\d+):00 from') def location(q): - uri = 'http://nominatim.openstreetmap.org/search/?q={query}&format=json'.\ + uri = 'https://nominatim.openstreetmap.org/search/?q={query}&format=json'.\ format(query=web.quote(q)) results = web.get(uri) data = json.loads(results)