From f6d376a207cdd4c37e35169279f5c777a0c49ca3 Mon Sep 17 00:00:00 2001 From: Chris Skalenda Date: Tue, 4 Aug 2015 15:26:42 -0600 Subject: [PATCH] weather: change location quoting mechanism This fixes two word place names, like 'Las Vegas, Nevada' --- plugins/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/weather.py b/plugins/weather.py index 3a8395b..bc983e8 100644 --- a/plugins/weather.py +++ b/plugins/weather.py @@ -60,7 +60,7 @@ def weather(inp, chan='', nick='', reply=None, db=None, api_key=None): state = http.quote_plus(state) state += '/' - loc = http.quote_plus(loc) + loc = http.quote(loc) url = 'http://api.wunderground.com/api/' query = '{key}/geolookup/conditions/forecast/q/{state}{loc}.json' \