Skip to content

Commit

Permalink
Fixing issue with non-numeric reminder_id
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Sep 15, 2023
1 parent 88eaad6 commit 98f73f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dispatch/plugins/dispatch_slack/feedback/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98f73f0

Please sign in to comment.