diff --git a/deluge/core/alertmanager.py b/deluge/core/alertmanager.py index 2ed05149b..464e9b3dc 100644 --- a/deluge/core/alertmanager.py +++ b/deluge/core/alertmanager.py @@ -95,7 +95,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 try: log.debug("%s: %s", alert_type, alert.message())