From 98f73f0abd1588460674066d61b31e486ce60a3a Mon Sep 17 00:00:00 2001 From: David Whittaker <84562015+whitdog47@users.noreply.github.com> Date: Fri, 15 Sep 2023 15:05:12 -0700 Subject: [PATCH] Fixing issue with non-numeric reminder_id --- src/dispatch/plugins/dispatch_slack/feedback/interactive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dispatch/plugins/dispatch_slack/feedback/interactive.py b/src/dispatch/plugins/dispatch_slack/feedback/interactive.py index fadaa04a4f22..f0ba81afdb54 100644 --- a/src/dispatch/plugins/dispatch_slack/feedback/interactive.py +++ b/src/dispatch/plugins/dispatch_slack/feedback/interactive.py @@ -397,7 +397,8 @@ def handle_oncall_shift_feedback_submission_event( # if there's a reminder id, delete the reminder if len(metadata) > 4: reminder_id = metadata[4] - reminder_service.delete(db_session=db_session, reminder_id=reminder_id) + if reminder_id.isnumeric(): + reminder_service.delete(db_session=db_session, reminder_id=reminder_id) individual = ( None