Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for empty match on incident lookup #224

Merged
merged 2 commits into from
Apr 4, 2024
Merged

Conversation

stephenyeargin
Copy link
Member

@stephenyeargin stephenyeargin commented Apr 4, 2024

Prior to this PR, a single incident lookup that didn't return a result would cause a TypeError when attempting to read its title. This PR addresses that by ensuring that an invalid incident doesn't get that far, instead returning an error message. Additionally, fixes a case where an schedule starting with Incident cannot be claimed.

Fixes #223

@stephenyeargin stephenyeargin merged commit 0ea0d87 into main Apr 4, 2024
3 checks passed
@stephenyeargin stephenyeargin deleted the check-empty-match branch April 4, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Can't take pager for schedule like Incident.*
1 participant