diff --git a/cliapp/cliapp/cli.py b/cliapp/cliapp/cli.py index 9c16f09..06e6fb0 100644 --- a/cliapp/cliapp/cli.py +++ b/cliapp/cliapp/cli.py @@ -165,13 +165,16 @@ def show_user(email): :param email: Email address of the user to show """ user = KratosUser.find_by_email(KRATOS_ADMIN, email) - print(user) - print("") - print(f"UUID: {user.uuid}") - print(f"Username: {user.username}") - print(f"Updated: {user.updated_at}") - print(f"Created: {user.created_at}") - print(f"State: {user.state}") + if user is not None: + print(user) + print("") + print(f"UUID: {user.uuid}") + print(f"Username: {user.username}") + print(f"Updated: {user.updated_at}") + print(f"Created: {user.created_at}") + print(f"State: {user.state}") + else: + print(f"User with email address '{email}' was not found") @user_cli.command("update")