mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +00:00
Fix the alert_type magic to work when libtorrent is not in the deluge
module
This commit is contained in:
parent
63c314843e
commit
3360c9c754
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue