Workaround bad cast in listen_failed alert
This commit is contained in:
parent
761586b2a8
commit
84e58626a9
@ -94,7 +94,11 @@ class AlertManager(component.Component):
|
||||
# Do some magic to get the alert type as a string
|
||||
alert_type = str(type(alert)).split("'")[1].split(".")[2]
|
||||
# Display the alert message
|
||||
try:
|
||||
log.debug("%s: %s", alert_type, alert.message())
|
||||
except RuntimeError:
|
||||
log.debug("%s", alert_type)
|
||||
|
||||
# Call any handlers for this alert type
|
||||
if alert_type in self.handlers.keys():
|
||||
for handler in self.handlers[alert_type]:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user