diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-11-25 18:43:36 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-11-25 18:43:36 +0100 |
commit | 2d4733f446dd4e62a554bfe637b1d595571842f8 (patch) | |
tree | 8cd3e25939ddf7acf703a863b21f498a28804cad /ick2/exceptions.py | |
parent | bdadf8cf1acddcbec060a529bedafd0abb5913f2 (diff) | |
download | ick2-2d4733f446dd4e62a554bfe637b1d595571842f8.tar.gz |
Fix: POST /project with an existing project name fails
Diffstat (limited to 'ick2/exceptions.py')
-rw-r--r-- | ick2/exceptions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ick2/exceptions.py b/ick2/exceptions.py index c99c3e5..124b207 100644 --- a/ick2/exceptions.py +++ b/ick2/exceptions.py @@ -18,6 +18,12 @@ class IckException(Exception): pass +class ExistsAlready(IckException): + + def __init__(self, name): + super().__init__('Resource {} already exists'.format(name)) + + class BadUpdate(IckException): def __init__(self, how): |