Merge branch '32-error-during-command-play-none' into 'develop'

Resolve "Error during command "play": None"

Closes #32

See merge request ekzyis/musicube!25
This commit is contained in:
Ramdip Gill 2022-04-21 21:14:18 +00:00
commit 874f2b174a
1 changed files with 1 additions and 1 deletions

View File

@ -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<error>\w+Error): ?(ERROR: ?)?(?P<message>.*): ?Traceback', message):
if match := re.search(r'(?P<error>\w+Error): ?(ERROR: ?)?(?P<message>.*)(: ?Traceback)?', message):
description = f"{match.group('error')}: {match.group('message')}"
super().__init__(
title=title,