From d0dc921fd4c50c19119cf5d2488437169093c125 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Mon, 2 May 2022 02:23:15 -0400 Subject: [PATCH] Add missing return on "whoami" error --- matrix_appservice_kakaotalk/commands/conn.py | 1 + 1 file changed, 1 insertion(+) diff --git a/matrix_appservice_kakaotalk/commands/conn.py b/matrix_appservice_kakaotalk/commands/conn.py index 8af0b99..6d351bd 100644 --- a/matrix_appservice_kakaotalk/commands/conn.py +++ b/matrix_appservice_kakaotalk/commands/conn.py @@ -65,6 +65,7 @@ async def whoami(evt: CommandEvent) -> None: own_info = None except CommandException as e: await evt.reply(f"Error from KakaoTalk: {e}") + return if own_info: await evt.reply( f"You're logged in as `{own_info.more.uuid}` (nickname: {own_info.more.nickName}, user ID: {evt.sender.ktid})."