From 3cf145aa34c48229c6422731a14254fba7227a44 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 10 Jan 2021 19:54:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20a=20bug=20with=20console?= =?UTF-8?q?=5Fmessage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet_console/utils/message.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/royalnet_console/utils/message.py b/royalnet_console/utils/message.py index 3534b544..8bd7f0ac 100644 --- a/royalnet_console/utils/message.py +++ b/royalnet_console/utils/message.py @@ -31,6 +31,8 @@ async def console_message(*, :param files: A :class:`list` of files to attach to the message. :return: The sent :class:`.engi.Message`. """ + if files is None: + files = [] if len(files) > 0: raise engi.exc.NotSupportedError("Console does not allow sending files.")