Skip to content

Commit 12541a7

Browse files
authored
Merge pull request adafruit#1096 from jerryneedell/jerryn_qclock
fix try/except in PyPortal Quarantine Clock
2 parents 3ee1f3d + b008826 commit 12541a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PyPortal_Quarantine_Clock/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
refresh_time = time.monotonic()
9696
# set the_time
9797
the_time = time.localtime()
98-
except (ValueError, RuntimeError) as error:
98+
except (ValueError, RuntimeError) as e:
9999
print("Failed to get data, retrying\n", e)
100100
esp.reset()
101101
continue

PyPortal_Quarantine_Clock/month_clock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
refresh_time = time.monotonic()
116116
# set the_time
117117
the_time = time.localtime()
118-
except (ValueError, RuntimeError) as error:
118+
except (ValueError, RuntimeError) as e:
119119
print("Failed to get data, retrying\n", e)
120120
esp.reset()
121121
continue

0 commit comments

Comments
 (0)