From 38701075e9ae2b8a2422c427414e3e71a96c384a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 13 Jul 2021 20:28:19 +0200 Subject: [PATCH] echo_client: fix wrong variable error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks mathieui Signed-off-by: Maxime “pep” Buquet --- examples/echo_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/echo_client.py b/examples/echo_client.py index 16df8ca..d775bf0 100644 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -262,13 +262,13 @@ class EchoBot(ClientXMPP): device_list.append(error.device) except (IqError, IqTimeout) as exn: self.plain_reply( - mto, mfrom, + mto, mtype, 'An error occured while fetching information on a recipient.\n%r' % exn, ) return None except Exception as exn: await self.plain_reply( - mto, mfrom, + mto, mtype, 'An error occured while attempting to encrypt.\n%r' % exn, ) raise