From 0fca30bbdac79d8d33e152e7e7116c5ffa1356ca Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 1 Nov 2020 23:28:07 +0100 Subject: Add WrongAction exception and use it instaed of returning error Signed-off-by: Olivier Gayot --- swiftstory/exception.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 swiftstory/exception.py (limited to 'swiftstory/exception.py') diff --git a/swiftstory/exception.py b/swiftstory/exception.py new file mode 100644 index 0000000..107e9fe --- /dev/null +++ b/swiftstory/exception.py @@ -0,0 +1,2 @@ +class WrongAction(Exception): + pass -- cgit v1.2.3