diff options
Diffstat (limited to 'jimbrella/exceptions.py')
-rw-r--r-- | jimbrella/exceptions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jimbrella/exceptions.py b/jimbrella/exceptions.py index 498c6c4..8e7734b 100644 --- a/jimbrella/exceptions.py +++ b/jimbrella/exceptions.py @@ -2,11 +2,11 @@ class UmbrellaNotFoundError(Exception): - """For when an umbrella with required serial is not found in database.""" + """For when an umbrella with required id is not found in database.""" - def __init__(self, serial): - self.serial = serial - self.message = f"No umbrella {serial} found." + def __init__(self, umbid): + self.id = umbid + self.message = f"Umbrella {id} not found." super().__init__(self.message) |