Skip to content

Commit 5eb3b5d

Browse files
author
Martin O'Hanlon
committed
runtime error raising
1 parent 276327c commit 5eb3b5d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

picozero/picozero.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,8 +1204,10 @@ def schedule_callback(callback):
12041204
except RuntimeError as e:
12051205
if str(e) == "schedule queue full":
12061206
raise EventFailedScheduleQueueFull(
1207-
"{} - {} not run due to the micropython schedule queue being full".format(
1207+
"{} - {} not run due to the micropython schedule being full".format(
12081208
str(self), callback_to_run.__name__))
1209+
else:
1210+
raise e
12091211

12101212
@property
12111213
def is_active(self):

0 commit comments

Comments
 (0)