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.
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 withIncident
cannot be claimed.Fixes #223