diff --git a/src/eduid/graphdb/groupdb/db.py b/src/eduid/graphdb/groupdb/db.py index 5d754c63d..c38cf69a3 100644 --- a/src/eduid/graphdb/groupdb/db.py +++ b/src/eduid/graphdb/groupdb/db.py @@ -56,7 +56,7 @@ def db_setup(self): for statement in statements: try: session.run(statement) - except ClientError as e: + except ClientError as e: # noqa: PERF203 assert e.message is not None # please mypy acceptable_error_codes = [ "Neo.ClientError.Schema.ConstraintAlreadyExists", diff --git a/src/eduid/scimapi/utils.py b/src/eduid/scimapi/utils.py index 14a04497e..0f04ec0a2 100644 --- a/src/eduid/scimapi/utils.py +++ b/src/eduid/scimapi/utils.py @@ -69,7 +69,7 @@ def wrapper_run_func(*args, **kwargs): while True: try: return func(*args, **kwargs) - except (EduIDDBError, EduIDGroupDBError, Neo4jError) as e: + except (EduIDDBError, EduIDGroupDBError, Neo4jError) as e: # noqa: PERF203 retry += 1 if retry >= max_retries: raise MaxRetriesReached(f"Max retries reached for {func.__name__}")