##// END OF EJS Templates
ssl: handle a difference in SSLError with pypy (issue5348)...
Pierre-Yves David -
r29927:799e3674 default
parent child Browse files
Show More
@@ -390,8 +390,12 b' def wrapsocket(sock, keyfile, certfile, '
390 390 try:
391 391 sslcontext.load_verify_locations(cafile=settings['cafile'])
392 392 except ssl.SSLError as e:
393 if len(e.args) == 1: # pypy has different SSLError args
394 msg = e.args[0]
395 else:
396 msg = e.args[1]
393 397 raise error.Abort(_('error loading CA file %s: %s') % (
394 settings['cafile'], e.args[1]),
398 settings['cafile'], msg),
395 399 hint=_('file is empty or malformed?'))
396 400 caloaded = True
397 401 elif settings['allowloaddefaultcerts']:
General Comments 0
You need to be logged in to leave comments. Login now