From ddaa0b2c7a9a7bae2c70ef060271fa10bef59c59 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sun, 24 Oct 2021 23:04:58 +0800 Subject: 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 --- jimbrella/exceptions.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'jimbrella/exceptions.py') 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 -- cgit v1.2.3