diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2003-11-30 18:19:02 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2003-11-30 18:19:02 +0000 |
commit | ecac35aaa4a2d7fc1f13660402557e9375576a22 (patch) | |
tree | e5f6c0051c4491e42a207b06c6e6e65de4f51351 /astro | |
parent | 9e4c82a3e5d4aa207033ec7bf7e1a08d33fbff2b (diff) |
Notes
Diffstat (limited to 'astro')
-rw-r--r-- | astro/gdesklets-goodweather/files/GoodWeather::__init__.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/astro/gdesklets-goodweather/files/GoodWeather::__init__.py b/astro/gdesklets-goodweather/files/GoodWeather::__init__.py new file mode 100644 index 000000000000..cf9a13b6464f --- /dev/null +++ b/astro/gdesklets-goodweather/files/GoodWeather::__init__.py @@ -0,0 +1,21 @@ +# Many thanks to Franz Klammer <klammer@webonaut.com> for help +# and create this patch. + +--- GoodWeather/__init__.py.orig Tue Nov 18 16:38:53 2003 ++++ GoodWeather/__init__.py Tue Nov 18 16:40:14 2003 +@@ -151,7 +151,14 @@ + fh = urllib.urlopen(self.WEATHER_SOURCE % vars()) + data = fh.read() + +- weather = parseGoodWeatherData(data) ++ #weather = parseGoodWeatherData(data) ++ data_error = re.search(r'''(<error>)''', data) ++ if not data_error: ++ weather = parseGoodWeatherData(data) ++ else: ++ time.sleep(1) ++ continue ++ + metric = 0 + if (units == self.CELSIUS): + metric = 1 |