do not ignore libtorrent import error

This commit is contained in:
Victor Shyba 2022-08-15 23:22:21 -03:00 committed by Victor Shyba
parent 8f26010c04
commit 5be990fc55

View file

@ -28,11 +28,7 @@ from lbry.torrent.torrent_manager import TorrentManager
from lbry.wallet import WalletManager from lbry.wallet import WalletManager
from lbry.wallet.usage_payment import WalletServerPayer from lbry.wallet.usage_payment import WalletServerPayer
from lbry.torrent.tracker import TrackerClient from lbry.torrent.tracker import TrackerClient
from lbry.torrent.session import TorrentSession
try:
from lbry.torrent.session import TorrentSession
except ImportError:
TorrentSession = None
log = logging.getLogger(__name__) log = logging.getLogger(__name__)