Fix script exiting on ntptime.settime() OveflowError
This commit is contained in:
parent
43ba1bc18a
commit
7a1371fd18
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user