From 7f7d1e05fcb4847b3c89555e3e3e03dea6cddc30 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 21 Apr 2022 23:12:24 +0200 Subject: [PATCH] Fix error message regex pattern --- src/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message.py b/src/message.py index ca8ddf4..87031df 100644 --- a/src/message.py +++ b/src/message.py @@ -21,7 +21,7 @@ class ErrorMessage(BotMessage): if command_name: title = f'Error during command "{command_name}"' description = None - if match := re.search(r'(?P\w+Error): ?(ERROR: ?)?(?P.*): ?Traceback', message): + if match := re.search(r'(?P\w+Error): ?(ERROR: ?)?(?P.*)(: ?Traceback)?', message): description = f"{match.group('error')}: {match.group('message')}" super().__init__( title=title,