From 4826fc2a370cad573d0a7d7ec7047d576defb78d Mon Sep 17 00:00:00 2001 From: WorldTeacher <41587052+WorldTeacher@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:41:18 +0200 Subject: [PATCH] add __str__ --- src/errors/DatabaseErrors.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/errors/DatabaseErrors.py b/src/errors/DatabaseErrors.py index 60674fe..0b55a41 100644 --- a/src/errors/DatabaseErrors.py +++ b/src/errors/DatabaseErrors.py @@ -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