Fix the alert_type magic to work when libtorrent is not in the deluge
module
This commit is contained in:
parent
63c314843e
commit
3360c9c754
@ -95,7 +95,7 @@ class AlertManager(component.Component):
|
|||||||
while alert is not None:
|
while alert is not None:
|
||||||
# Loop through all alerts in the queue
|
# Loop through all alerts in the queue
|
||||||
# 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(".")[-1]
|
||||||
# Display the alert message
|
# Display the alert message
|
||||||
try:
|
try:
|
||||||
log.debug("%s: %s", alert_type, alert.message())
|
log.debug("%s: %s", alert_type, alert.message())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user