Fixing some errors

This commit is contained in:
Rafael Vargas
2022-03-26 21:40:04 -04:00
parent b4159c7e86
commit caaa48ba05
5 changed files with 9 additions and 7 deletions

View File

@@ -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)