Revert last change. Hiding the exception isn't a good idea and the error shouldn't be OS-specific.

This commit is contained in:
Andrew Resch 2009-02-11 00:40:22 +00:00
parent ee05e18a9a
commit 1d61bb3e94
2 changed files with 6 additions and 12 deletions

View File

@ -30,14 +30,11 @@ import threading
import pkg_resources
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 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

View File

@ -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")
from twisted.internet import gtk2reactor
reactor = gtk2reactor.install()
import gobject
import gettext