From d754de32d1545671ec952bbb1fde624439f4bee5 Mon Sep 17 00:00:00 2001 From: ZorEl212 Date: Sat, 26 Oct 2024 12:33:55 +0300 Subject: [PATCH] Models/Auth: Replace some hardoced messages Signed-off-by: ZorEl212 --- models/exception/auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/exception/auth.py b/models/exception/auth.py index 9f9aaf9..db83b65 100644 --- a/models/exception/auth.py +++ b/models/exception/auth.py @@ -1,10 +1,11 @@ #!/usr/bin/env python3 +import resources.strings as strings class AuthenticationError(Exception): def __init__(self, message, err_code): self.message = message self.err_code = err_code def __str__(self): - return f"AuthenticationError: {self.message}" + return f"{strings.EXC_AUTH_ERROR}: {self.message}"