diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-02-02 11:15:09 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-02-02 11:15:09 +0800 |
commit | 66264fe5730943576b847077dadf5e4531d4beb1 (patch) | |
tree | db4b4d1dddd5cd6604e96715bf5c5e0d14fa35ac /jimbrella/exceptions.py | |
parent | 02547e6078a7cd6c1371379f1bab72bf48add23d (diff) |
Adapt core to new db
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) |