Fix script exiting on ntptime.settime() OveflowError

This commit is contained in:
arofarn 2020-04-25 17:45:02 +02:00
parent 43ba1bc18a
commit 7a1371fd18

View File

@ -94,6 +94,9 @@ def set_rtc():
except OSError as e: except OSError as e:
if e.errno == 110: if e.errno == 110:
time.sleep(2) time.sleep(2)
except OverflowError as e:
print(e)
time.sleep(2)
def now(clock): def now(clock):