echo_client: fix wrong variable error

Thanks mathieui

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2021-07-13 20:28:19 +02:00
parent 59e82ec9ee
commit 38701075e9
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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