mirror of
https://github.com/codex-storage/deluge.git
synced 2025-03-03 12:30:45 +00:00
If plugin is installed on an older client, known_events
might not exist yet.
This commit is contained in:
parent
a5e8a9dc69
commit
127b577440
@ -40,11 +40,16 @@
|
||||
import smtplib
|
||||
from twisted.internet import defer, threads
|
||||
from deluge import component
|
||||
from deluge.event import known_events
|
||||
from deluge.log import LOG as log
|
||||
from deluge.ui.client import client
|
||||
import deluge.common
|
||||
|
||||
try:
|
||||
from deluge.event import known_events
|
||||
except ImportError:
|
||||
# Old deluge version
|
||||
known_events = {}
|
||||
|
||||
try:
|
||||
import pygame
|
||||
SOUND_AVAILABLE = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user