From 62fac70309252378d10a8be1feff7bdaff4eea8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Soykan=20Ert=C3=BCrk?= Date: Sun, 5 Apr 2020 13:29:56 +0300 Subject: [PATCH] Fixing no internet crash --- bumblebee/modules/sun.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bumblebee/modules/sun.py b/bumblebee/modules/sun.py index b4d1286..a356b35 100644 --- a/bumblebee/modules/sun.py +++ b/bumblebee/modules/sun.py @@ -64,6 +64,8 @@ class Module(bumblebee.engine.Module): def _calculate_times(self): self._isup = False try: + if not self._lat or not self._lon: + raise() sun = Sun(self._lat, self._lon) except Exception: self._sunrise = None