diff options
Diffstat (limited to 'src/leap/common')
-rw-r--r-- | src/leap/common/http.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/common/http.py b/src/leap/common/http.py index d0a298c..dd1b0f9 100644 --- a/src/leap/common/http.py +++ b/src/leap/common/http.py @@ -216,13 +216,15 @@ class HTTPClient(object): ignored. :type timeout: float """ - self._timeout = timeout self._pool = pool if pool is not None else self._pool if cert_path is None: trustRoot = getCertifiTrustRoot() else: + if not os.path.isfile(cert_path): + raise RuntimeError( + 'Certificate file %s cannot be found' % cert_path) trustRoot = cert_path self._agent = Agent( |