From 66264fe5730943576b847077dadf5e4531d4beb1 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 2 Feb 2022 11:15:09 +0800 Subject: Adapt core to new db --- jimbrella/exceptions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jimbrella/exceptions.py') 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) -- cgit v1.2.3