mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Prevent NameError if ssl module can't be imported.
This commit is contained in:
parent
93586d71f4
commit
7d22d3dc36
@ -38,6 +38,13 @@ import sys
|
||||
import time
|
||||
import select
|
||||
import socket
|
||||
import supybot.log as log
|
||||
import supybot.conf as conf
|
||||
import supybot.utils as utils
|
||||
import supybot.world as world
|
||||
import supybot.drivers as drivers
|
||||
import supybot.schedule as schedule
|
||||
from itertools import imap
|
||||
try:
|
||||
import ssl
|
||||
SSLError = ssl.SSLError
|
||||
@ -47,13 +54,6 @@ except:
|
||||
class SSLError(Exception):
|
||||
pass
|
||||
|
||||
import supybot.log as log
|
||||
import supybot.conf as conf
|
||||
import supybot.utils as utils
|
||||
import supybot.world as world
|
||||
import supybot.drivers as drivers
|
||||
import supybot.schedule as schedule
|
||||
from itertools import imap
|
||||
|
||||
class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||
def __init__(self, irc):
|
||||
|
Loading…
Reference in New Issue
Block a user