[modules/weather] Fix exception if requests is not installed

fixes #418
This commit is contained in:
Tobias Witek 2019-08-11 07:17:22 +02:00
parent af2e45a7b3
commit a1a339bcb7

View file

@ -118,8 +118,6 @@ class Module(bumblebee.engine.Module):
self._temperature = int(weather['main']['temp']) self._temperature = int(weather['main']['temp'])
self._weather = weather['weather'][0]['main'].lower() self._weather = weather['weather'][0]['main'].lower()
self._valid = True self._valid = True
except RequestException:
self._valid = False
except Exception: except Exception:
self._valid = False self._valid = False