Revert last change. Hiding the exception isn't a good idea and the error shouldn't be OS-specific.
This commit is contained in:
parent
ee05e18a9a
commit
1d61bb3e94
|
@ -30,14 +30,11 @@ import threading
|
|||
import pkg_resources
|
||||
import base64
|
||||
|
||||
from deluge.log import LOG as log
|
||||
|
||||
try:
|
||||
from twisted.internet import reactor
|
||||
from twisted.internet.task import LoopingCall
|
||||
import twisted.web.client
|
||||
except ImportError:
|
||||
log.error("You must install python-twisted")
|
||||
|
||||
from deluge.log import LOG as log
|
||||
|
||||
try:
|
||||
import deluge.libtorrent as lt
|
||||
|
|
|
@ -26,11 +26,8 @@
|
|||
from deluge.log import LOG as log
|
||||
|
||||
# Install the twisted reactor
|
||||
try:
|
||||
from twisted.internet import gtk2reactor
|
||||
reactor = gtk2reactor.install()
|
||||
except ImportError:
|
||||
log.error("You must install python-twisted")
|
||||
|
||||
import gobject
|
||||
import gettext
|
||||
|
|
Loading…
Reference in New Issue