From 69249ccd0219acd76958e3b090a18aeb131a4abd Mon Sep 17 00:00:00 2001 From: e7p Date: Wed, 9 Mar 2022 13:21:10 +0100 Subject: [PATCH] changed the cert bundle verification to also support supplying other paths to the requests api --- zulip/zulip/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 4b4829367..1d0b81311 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -489,7 +489,7 @@ def __init__( ) self.tls_verification = False # type: Union[bool, str] elif cert_bundle is not None: - if not os.path.isfile(cert_bundle): + if not os.path.exists(cert_bundle): raise ConfigNotFoundError(f"tls bundle '{cert_bundle}' does not exist") self.tls_verification = cert_bundle else: