mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-03 08:04:07 +01:00
Socket: update logging text to flow better
This commit is contained in:
parent
aee7ac3583
commit
b344126318
@ -377,8 +377,8 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
|||||||
except ssl.CertificateError as e:
|
except ssl.CertificateError as e:
|
||||||
drivers.log.error(('Certificate validation failed when '
|
drivers.log.error(('Certificate validation failed when '
|
||||||
'connecting to %s: %s\n'
|
'connecting to %s: %s\n'
|
||||||
'This means someone is doing a man-in-the-middle attack '
|
'This means either someone is doing a man-in-the-middle '
|
||||||
'on your connection, or the server\'s certificate is '
|
'attack on your connection, or the server\'s certificate is '
|
||||||
'not in your trusted fingerprints list.')
|
'not in your trusted fingerprints list.')
|
||||||
% (self.irc.network, e.args[0]))
|
% (self.irc.network, e.args[0]))
|
||||||
raise ssl.SSLError('Aborting because of failed certificate '
|
raise ssl.SSLError('Aborting because of failed certificate '
|
||||||
@ -386,8 +386,8 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
|||||||
except ssl.SSLError as e:
|
except ssl.SSLError as e:
|
||||||
drivers.log.error(('Certificate validation failed when '
|
drivers.log.error(('Certificate validation failed when '
|
||||||
'connecting to %s: %s\n'
|
'connecting to %s: %s\n'
|
||||||
'This means someone is doing a man-in-the-middle attack '
|
'This means either someone is doing a man-in-the-middle '
|
||||||
'on your connection, or because the server\'s '
|
'attack on your connection, or the server\'s '
|
||||||
'certificate is not trusted.')
|
'certificate is not trusted.')
|
||||||
% (self.irc.network, e.args[1]))
|
% (self.irc.network, e.args[1]))
|
||||||
raise ssl.SSLError('Aborting because of failed certificate '
|
raise ssl.SSLError('Aborting because of failed certificate '
|
||||||
|
Loading…
Reference in New Issue
Block a user