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
1 changed files with 3 additions and 0 deletions

View File

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