summaryrefslogtreecommitdiff
path: root/swiftstory/exception.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2020-11-01 23:28:07 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2020-11-01 23:47:25 +0100
commit0fca30bbdac79d8d33e152e7e7116c5ffa1356ca (patch)
treebfcd33f2bd68f220ffad956b07d37002dc06de9f /swiftstory/exception.py
parentd66b6d0115e620f8c12629a5822cf31d3e976a20 (diff)
Add WrongAction exception and use it instaed of returning error
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory/exception.py')
-rw-r--r--swiftstory/exception.py2
1 files changed, 2 insertions, 0 deletions
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