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 time
|
||||||
import select
|
import select
|
||||||
import socket
|
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:
|
try:
|
||||||
import ssl
|
import ssl
|
||||||
SSLError = ssl.SSLError
|
SSLError = ssl.SSLError
|
||||||
@ -47,13 +54,6 @@ except:
|
|||||||
class SSLError(Exception):
|
class SSLError(Exception):
|
||||||
pass
|
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):
|
class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||||
def __init__(self, irc):
|
def __init__(self, irc):
|
||||||
|
Loading…
Reference in New Issue
Block a user