From 2d4733f446dd4e62a554bfe637b1d595571842f8 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 25 Nov 2017 18:43:36 +0100 Subject: Fix: POST /project with an existing project name fails --- ick2/exceptions.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ick2/exceptions.py') 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): -- cgit v1.2.1