Not previously handled backends (eg. mobile) could end here without a messaging backend

This commit is contained in:
Matias Bordese 2022-10-26 09:30:13 -03:00
parent ae65f9b782
commit 2c8c66a8c8

View file

@ -596,7 +596,7 @@ class IncidentLogBuilder:
except ValueError:
pass
else:
result += f"send {backend.label.lower()} message to {user_verbal}"
result += f"send {backend.label.lower() if backend else ''} message to {user_verbal}"
if not result:
result += f"inviting {user_verbal} but notification channel is unspecified"
return result