From ce57415c47d0de2b62513dd6710cfd32f21bdc5e Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 14 Mar 2019 16:20:05 -0700 Subject: [PATCH] NuWeather: Raise=True is not a valid keyword for callbacks.Error --- NuWeather/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NuWeather/plugin.py b/NuWeather/plugin.py index f892685..8dd3afe 100644 --- a/NuWeather/plugin.py +++ b/NuWeather/plugin.py @@ -285,7 +285,7 @@ class NuWeather(callbacks.Plugin): location = location.lower() apikey = self.registryValue('apikeys.googlemaps') if not apikey: - raise callbacks.Error("No Google Maps API key.", Raise=True) + raise callbacks.Error("No Google Maps API key.") url = "https://maps.googleapis.com/maps/api/geocode/json?address={0}&key={1}".format(utils.web.urlquote(location), apikey) self.log.debug('NuWeather: using url %s (geocoding)', url) @@ -310,7 +310,7 @@ class NuWeather(callbacks.Plugin): location = location.lower() apikey = self.registryValue('apikeys.opencage') if not apikey: - raise callbacks.Error("No OpenCage API key.", Raise=True) + raise callbacks.Error("No OpenCage API key.") url = "https://api.opencagedata.com/geocode/v1/json?q={0}&key={1}".format(utils.web.urlquote(location), apikey) self.log.debug('NuWeather: using url %s (geocoding)', url)