summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--custodia/httpd/authenticators.py2
-rw-r--r--custodia/httpd/server.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/custodia/httpd/authenticators.py b/custodia/httpd/authenticators.py
index ecd3d30..88b6136 100644
--- a/custodia/httpd/authenticators.py
+++ b/custodia/httpd/authenticators.py
@@ -112,7 +112,7 @@ class SimpleAuthKeys(HTTPAuthenticator):
if constant_time.bytes_eq(val.encode('utf-8'),
key.encode('utf-8')):
validated = True
- except Exception:
+ except Exception: # pylint: disable=broad-except
self.audit_svc_access(log.AUDIT_SVC_AUTH_FAIL,
request['client_id'], name)
return False
diff --git a/custodia/httpd/server.py b/custodia/httpd/server.py
index 4b16edc..47c69ed 100644
--- a/custodia/httpd/server.py
+++ b/custodia/httpd/server.py
@@ -160,7 +160,7 @@ class HTTPRequestHandler(BaseHTTPRequestHandler):
creds = self.request.getsockopt(socket.SOL_SOCKET, SO_PEERSEC,
SELINUX_CONTEXT_LEN)
context = creds.decode('utf-8')
- except Exception:
+ except Exception: # pylint: disable=broad-except
logger.debug("Couldn't retrieve SELinux Context", exc_info=True)
context = None