mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Socket: Only display the missing cert file warning if a cert file path is given.
This commit is contained in:
parent
ddbadcafff
commit
9a83b741ea
@ -306,7 +306,9 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||
assert globals().has_key('ssl')
|
||||
certfile = getattr(conf.supybot.networks, self.irc.network) \
|
||||
.certfile()
|
||||
if not certfile or not os.path.isfile(certfile):
|
||||
if not certfile:
|
||||
certfile = None
|
||||
elif not os.path.isfile(certfile):
|
||||
drivers.log.warning('Could not find cert file %s.' %
|
||||
certfile)
|
||||
certfile = None
|
||||
|
Loading…
Reference in New Issue
Block a user