From 6df9e2c2646975ffc7c312f675591870eb4b2ad8 Mon Sep 17 00:00:00 2001 From: Jefferson Stachelski Date: Fri, 25 Sep 2015 19:05:01 -0300 Subject: Issue #470 handling the update draft Deleting the new draft created if the old one was not found to fix the duplication drafts --- service/pixelated/adapter/errors/__init__.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 service/pixelated/adapter/errors/__init__.py (limited to 'service/pixelated/adapter/errors') diff --git a/service/pixelated/adapter/errors/__init__.py b/service/pixelated/adapter/errors/__init__.py new file mode 100644 index 00000000..31ad4947 --- /dev/null +++ b/service/pixelated/adapter/errors/__init__.py @@ -0,0 +1,3 @@ +class DuplicatedDraftException(Exception): + def __init__(self, message): + super(Exception, self).__init__(message) -- cgit v1.2.3