mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Fixed twisted.internet.ssl imports to work still if OpenSSL isn't installed.
This commit is contained in:
parent
4fb15198a0
commit
660776f804
@ -35,12 +35,13 @@ import supybot.ircdb as ircdb
|
||||
import supybot.drivers as drivers
|
||||
import supybot.ircmsgs as ircmsgs
|
||||
|
||||
from twisted.internet import reactor, error, ssl
|
||||
from twisted.internet import reactor, error
|
||||
from twisted.protocols.basic import LineReceiver
|
||||
from twisted.internet.protocol import ReconnectingClientFactory
|
||||
|
||||
try:
|
||||
from OpenSSL import SSL
|
||||
from twisted.internet import ssl
|
||||
except ImportError:
|
||||
drivers.log.debug('PyOpenSSL is not available, '
|
||||
'cannot connect to SSL servers.')
|
||||
|
Loading…
Reference in New Issue
Block a user