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 pkg_resources
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
from deluge.log import LOG as log
|
from twisted.internet import reactor
|
||||||
|
from twisted.internet.task import LoopingCall
|
||||||
|
import twisted.web.client
|
||||||
|
|
||||||
try:
|
from deluge.log import LOG as log
|
||||||
from twisted.internet import reactor
|
|
||||||
from twisted.internet.task import LoopingCall
|
|
||||||
import twisted.web.client
|
|
||||||
except ImportError:
|
|
||||||
log.error("You must install python-twisted")
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import deluge.libtorrent as lt
|
import deluge.libtorrent as lt
|
||||||
|
|
|
@ -26,11 +26,8 @@
|
||||||
from deluge.log import LOG as log
|
from deluge.log import LOG as log
|
||||||
|
|
||||||
# Install the twisted reactor
|
# Install the twisted reactor
|
||||||
try:
|
from twisted.internet import gtk2reactor
|
||||||
from twisted.internet import gtk2reactor
|
reactor = gtk2reactor.install()
|
||||||
reactor = gtk2reactor.install()
|
|
||||||
except ImportError:
|
|
||||||
log.error("You must install python-twisted")
|
|
||||||
|
|
||||||
import gobject
|
import gobject
|
||||||
import gettext
|
import gettext
|
||||||
|
|
Loading…
Reference in New Issue