[modules] weather & github: Protect against missing data
If data cannot be retrieved for some reason (be pretty generous about that by catching generic exceptions), instead of terminating the whole status bar, simply report unknown data. see #110
This commit is contained in:
parent
b89e384b20
commit
dc06611fb1
2 changed files with 10 additions and 4 deletions
|
@ -70,5 +70,7 @@ class Module(bumblebee.engine.Module):
|
|||
self._valid = True
|
||||
except RequestException:
|
||||
self._valid = False
|
||||
except Exception:
|
||||
self._valid = False
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue