diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-10-24 23:04:58 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-10-24 23:04:58 +0800 |
commit | ddaa0b2c7a9a7bae2c70ef060271fa10bef59c59 (patch) | |
tree | 39e822bc791696b33b5609e020207f5795972b24 /jimbrella/exceptions.py | |
parent | 8a9e80d9a2d823c90ccbbdbca268e6c65a8ac31b (diff) |
One major, multiple minor changes to Database
Major:
- New update(umb) method as an interface to _update(umb), with
convenience and safeguards.
Minor:
- New exception: UmbrellaValueError
- All datetime objects are cast naive
- Database._write(umbrellas) raises exception after performing recovery
- human_datetime includes seconds in output
Diffstat (limited to 'jimbrella/exceptions.py')
-rw-r--r-- | jimbrella/exceptions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jimbrella/exceptions.py b/jimbrella/exceptions.py index 3162e02..2c62bc4 100644 --- a/jimbrella/exceptions.py +++ b/jimbrella/exceptions.py @@ -13,3 +13,9 @@ class UmbrellaStatusError(Exception): """ pass + + +class UmbrellaValueError(Exception): + """For when an admin enters an invalid value when modifying the database.""" + + pass |