From 09e27e96092f9a2e4f731709b8e8fdcd9835069a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 3 Jul 2025 12:17:56 -0500 Subject: Fix minor issues caught by mypy. --- gn_auth/auth/authorisation/users/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gn_auth/auth/authorisation/users/views.py') 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") } -- cgit v1.2.3