Commit ea34959b authored by Philipp Hörist's avatar Philipp Hörist

Catch cert error in posh query

parent a943a35a
......@@ -43,6 +43,7 @@ import hashlib
import json
import logging
import base64
import ssl
from functools import partial
from string import Template
from urllib.request import urlopen
......@@ -1281,7 +1282,7 @@ class Connection(CommonConnection, ConnectionHandlers):
file = urlopen(
url, cafile=cafile, timeout=2)
except URLError as exc:
except (URLError, ssl.CertificateError) as exc:'Error while requesting POSH: %s' % exc)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment