diff options
author | Frederick Muriuki Muriithi | 2025-02-26 13:35:49 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-02-26 13:35:49 -0600 |
commit | 1a9b87f34f84107d0ede098b6c5f276a2d47ef39 (patch) | |
tree | 0de97e000ba5727437a4a563c289da7829db422c /gn_auth/auth/authorisation/roles/models.py | |
parent | d35b73fb0924ebf1f1e43f42eba0f8fe9bfd6dc8 (diff) | |
download | gn-auth-1a9b87f34f84107d0ede098b6c5f276a2d47ef39.tar.gz |
Fix pylint errors.
Diffstat (limited to 'gn_auth/auth/authorisation/roles/models.py')
-rw-r--r-- | gn_auth/auth/authorisation/roles/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/roles/models.py b/gn_auth/auth/authorisation/roles/models.py index 2729b3b..6faeaca 100644 --- a/gn_auth/auth/authorisation/roles/models.py +++ b/gn_auth/auth/authorisation/roles/models.py @@ -271,7 +271,7 @@ def role_by_id(conn: db.DbConnection, role_id: UUID) -> Optional[Role]: _roles = db_rows_to_roles(results) if len(_roles) > 1: - raise Exception("Data corruption: Expected a single role.") + raise Exception("Data corruption: Expected a single role.")# pylint: disable=[broad-exception-raised] return _roles[0] |