aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authorisation/users
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth/auth/authorisation/users')
-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({