mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
Workaround bad cast in listen_failed alert
This commit is contained in:
parent
761586b2a8
commit
84e58626a9
1 changed files with 5 additions and 1 deletions
|
@ -94,7 +94,11 @@ class AlertManager(component.Component):
|
||||||
# Do some magic to get the alert type as a string
|
# Do some magic to get the alert type as a string
|
||||||
alert_type = str(type(alert)).split("'")[1].split(".")[2]
|
alert_type = str(type(alert)).split("'")[1].split(".")[2]
|
||||||
# Display the alert message
|
# Display the alert message
|
||||||
|
try:
|
||||||
log.debug("%s: %s", alert_type, alert.message())
|
log.debug("%s: %s", alert_type, alert.message())
|
||||||
|
except RuntimeError:
|
||||||
|
log.debug("%s", alert_type)
|
||||||
|
|
||||||
# Call any handlers for this alert type
|
# Call any handlers for this alert type
|
||||||
if alert_type in self.handlers.keys():
|
if alert_type in self.handlers.keys():
|
||||||
for handler in self.handlers[alert_type]:
|
for handler in self.handlers[alert_type]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue