Skip to content

Commit

Permalink
Models/Auth: Replace some hardoced messages
Browse files Browse the repository at this point in the history
Signed-off-by: ZorEl212 <[email protected]>
  • Loading branch information
ZorEl212 committed Oct 26, 2024
1 parent 807782a commit d754de3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/exception/auth.py
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit d754de3

Please sign in to comment.