From d40db34939354f313e7430b5785e6c08d2f97ef9 Mon Sep 17 00:00:00 2001 From: Jackson Date: Thu, 12 Oct 2023 08:55:17 +0200 Subject: [PATCH] fixup! implement setting user display name --- synadm/cli/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synadm/cli/user.py b/synadm/cli/user.py index 1d0b966a..ea980738 100644 --- a/synadm/cli/user.py +++ b/synadm/cli/user.py @@ -548,7 +548,7 @@ def set_display_name(helper, user_id, display_name): raise SystemExit(1) if helper.output_format == "human": new_display_name = modified["displayname"] - if new_display_name == None: + if new_display_name is None: click.echo(f"Removed display name for {mxid}") else: click.echo(f"Set display name for {mxid} to {new_display_name}")