added try/catch
This commit is contained in:
@@ -69,6 +69,7 @@ class start(threading.Thread, deviceBase):
|
|||||||
send_loops = 0
|
send_loops = 0
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
try:
|
||||||
now = time.time()
|
now = time.time()
|
||||||
if self.force_send:
|
if self.force_send:
|
||||||
log.warning("FORCE SEND: TRUE")
|
log.warning("FORCE SEND: TRUE")
|
||||||
@@ -91,6 +92,8 @@ class start(threading.Thread, deviceBase):
|
|||||||
|
|
||||||
if (now - self.public_ip_address_last_checked) > IP_CHECK_PERIOD:
|
if (now - self.public_ip_address_last_checked) > IP_CHECK_PERIOD:
|
||||||
self._check_ip_address()
|
self._check_ip_address()
|
||||||
|
except Exception as e:
|
||||||
|
log.error(e)
|
||||||
|
|
||||||
|
|
||||||
def _check_ip_address(self):
|
def _check_ip_address(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user