aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authorisation/users/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-03 12:17:56 -0500
committerFrederick Muriuki Muriithi2025-07-03 12:17:56 -0500
commit09e27e96092f9a2e4f731709b8e8fdcd9835069a (patch)
treeb8dd4cc569348e59ae1e54bc82c22564ca8cc115 /gn_auth/auth/authorisation/users/views.py
parent3f1842894dc9f984ec2186f64c7d6f7bba27205f (diff)
downloadgn-auth-09e27e96092f9a2e4f731709b8e8fdcd9835069a.tar.gz
Fix minor issues caught by mypy.
Diffstat (limited to 'gn_auth/auth/authorisation/users/views.py')
-rw-r--r--gn_auth/auth/authorisation/users/views.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py
index 4006dd6..55921ca 100644
--- a/gn_auth/auth/authorisation/users/views.py
+++ b/gn_auth/auth/authorisation/users/views.py
@@ -337,7 +337,11 @@ def list_all_users() -> Response:
"""List all the users."""
_kwargs = {
key: value
- for key, value in request.json.items()
+ for key, value in (
+ request.json.items() if request.json
+ else {
+ "email": "", "name": "", "verified": "", "age": ""
+ })
if key in ("email", "name", "verified", "age")
}