Merge pull request #591 from soykan/patch-1
Fixing no internet crash (Sun Module)
This commit is contained in:
commit
079f87e046
1 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,8 @@ class Module(bumblebee.engine.Module):
|
||||||
def _calculate_times(self):
|
def _calculate_times(self):
|
||||||
self._isup = False
|
self._isup = False
|
||||||
try:
|
try:
|
||||||
|
if not self._lat or not self._lon:
|
||||||
|
raise()
|
||||||
sun = Sun(self._lat, self._lon)
|
sun = Sun(self._lat, self._lon)
|
||||||
except Exception:
|
except Exception:
|
||||||
self._sunrise = None
|
self._sunrise = None
|
||||||
|
|
Loading…
Reference in a new issue