From cef22ea7bb7d8fe941b50fbbae904f6892f9bd80 Mon Sep 17 00:00:00 2001 From: enkore Date: Thu, 17 Oct 2013 16:31:45 +0200 Subject: [PATCH] weather: Should resolve #23 --- i3pystatus/weather.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i3pystatus/weather.py b/i3pystatus/weather.py index d53c882..b6687f1 100644 --- a/i3pystatus/weather.py +++ b/i3pystatus/weather.py @@ -1,5 +1,7 @@ from i3pystatus import IntervalModule import pywapi +from i3pystatus.core.util import internet, require + class Weather(IntervalModule): @@ -25,6 +27,7 @@ class Weather(IntervalModule): units = "C" format = "{current_temp}" + @require(internet) def run(self): result = pywapi.get_weather_from_weather_com(self.location_code, self.units) conditions = result['current_conditions']