Prevent NameError if ssl module can't be imported.

This commit is contained in:
Valentin Lorentz 2012-12-07 01:48:05 +00:00
parent 93586d71f4
commit 7d22d3dc36

View File

@ -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):