add __str__
This commit is contained in:
@@ -8,3 +8,6 @@ class AppPresentError(Exception):
|
||||
def __init__(self, message):
|
||||
self.message = f"The app {message} is already present in the database"
|
||||
super().__init__(self.message)
|
||||
|
||||
def __str__(self):
|
||||
return self.message
|
||||
|
||||
Reference in New Issue
Block a user