From 7a1371fd18d6add299356caee1590af94ae2d64a Mon Sep 17 00:00:00 2001 From: arofarn Date: Sat, 25 Apr 2020 17:45:02 +0200 Subject: [PATCH] Fix script exiting on ntptime.settime() OveflowError --- code/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/main.py b/code/main.py index c97c33c..1c0ffb5 100644 --- a/code/main.py +++ b/code/main.py @@ -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):