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:
commit
874f2b174a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue