Fix the alert_type magic to work when libtorrent is not in the deluge
module
This commit is contained in:
parent
79209daf94
commit
9fc18f0e41
|
@ -92,7 +92,7 @@ class AlertManager(component.Component):
|
|||
while alert is not None:
|
||||
# Loop through all alerts in the queue
|
||||
# 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(".")[-1]
|
||||
# Display the alert message
|
||||
log.debug("%s: %s", alert_type, alert.message())
|
||||
# Call any handlers for this alert type
|
||||
|
|
Loading…
Reference in New Issue