aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-03 12:00:43 -0500
committerFrederick Muriuki Muriithi2025-07-03 12:00:43 -0500
commit286b87c4d7f09dffbae0145ccc9f0d55cebe1adb (patch)
treedaee34789949e631875c44dceb8cae3b34a82d38
parentdaabd4bda2f866bf267d117714ad3b03ced896c8 (diff)
downloadgn-auth-286b87c4d7f09dffbae0145ccc9f0d55cebe1adb.tar.gz
Fix some linting issues.
-rw-r--r--gn_auth/auth/authorisation/users/models.py2
-rw-r--r--gn_auth/auth/authorisation/users/views.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/users/models.py b/gn_auth/auth/authorisation/users/models.py
index 58ebd7a..956f239 100644
--- a/gn_auth/auth/authorisation/users/models.py
+++ b/gn_auth/auth/authorisation/users/models.py
@@ -37,7 +37,7 @@ def __process_age_clause__(age_desc: str) -> tuple[str, int]:
case "exactly":
return "created = :created", _param
case _:
- raise Exception("Invalid age descriptor.")
+ raise Exception("Invalid age descriptor.")# pylint: disable=[broad-exception-raised]
def __list_user_clauses_and_params__(**kwargs) -> tuple[str, dict[str, Union[int, str]]]:
diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py
index 5c163b2..4006dd6 100644
--- a/gn_auth/auth/authorisation/users/views.py
+++ b/gn_auth/auth/authorisation/users/views.py
@@ -620,7 +620,7 @@ def delete_users():
"not-deleted": _diff,
"message": (
f"Successfully deleted {_deleted_rows} users." +
- (f" Some users could not be deleted." if _diff > 0 else ""))
+ (" Some users could not be deleted." if _diff > 0 else ""))
})
return jsonify({