From 5bec42efa2176d40f0a1229cea0c4f3640be1126 Mon Sep 17 00:00:00 2001 From: Jacob Boddey Date: Mon, 5 Aug 2024 11:00:39 +0100 Subject: [PATCH] Ignore folders when loading certs --- framework/python/src/common/session.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/python/src/common/session.py b/framework/python/src/common/session.py index 08e5dda95..02d46591e 100644 --- a/framework/python/src/common/session.py +++ b/framework/python/src/common/session.py @@ -648,6 +648,11 @@ def load_certs(self): self._certs = [] for cert_file in os.listdir(CERTS_PATH): + + # Ignore directories + if os.path.isdir(os.path.join(CERTS_PATH, cert_file)): + continue + LOGGER.debug(f'Loading certificate {cert_file}') try: