Fixing no internet crash
This commit is contained in:
parent
efb67357cf
commit
62fac70309
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