From 414fbe1e5e7e24dc79fe9c46284c5c72d6cca113 Mon Sep 17 00:00:00 2001 From: David Wahlstrom Date: Thu, 13 Apr 2017 11:14:35 -0700 Subject: [PATCH] Fix weathercom module (#561) The weathcom module was broken due to referencing a variable that did not exist. It appears this was a typo or copy/paste error. Either way, this patch fixes that error and the weathcom module works again! --- i3pystatus/weather/weathercom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/weather/weathercom.py b/i3pystatus/weather/weathercom.py index 3954be0..56b005d 100644 --- a/i3pystatus/weather/weathercom.py +++ b/i3pystatus/weather/weathercom.py @@ -43,7 +43,7 @@ class WeathercomHTMLParser(HTMLParser): def load_json(self, json_input): self.logger.debug('Loading the following data as JSON: %s', json_input) try: - return json.loads(json_string) + return json.loads(json_input) except json.decoder.JSONDecodeError as exc: self.logger.debug('Error loading JSON: %s', exc) self.logger.debug('String that failed to load: %s', json_input)