mirror of
https://github.com/weyne85/discord_music_bot.git
synced 2025-10-29 16:58:27 +00:00
Fixing some errors
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from Config.Config import Configs
|
||||
from Config.Messages import Messages
|
||||
|
||||
|
||||
class Error(Exception):
|
||||
@@ -18,9 +19,9 @@ class Error(Exception):
|
||||
|
||||
class ImpossibleMove(Error):
|
||||
def __init__(self, message='', title='', *args: object) -> None:
|
||||
config = Configs()
|
||||
message = Messages()
|
||||
if title == '':
|
||||
title = config.IMPOSSIBLE_MOVE
|
||||
title = message.IMPOSSIBLE_MOVE
|
||||
super().__init__(message, title, *args)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user