Skip to content

Commit 819a812

Browse files
preserve traceback when re-raising exceptions
1 parent 43ba76b commit 819a812

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/migrated_routes/category.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def post(self, data):
113113
== CategoryCollection._NAME_UNIQUE_CONSTRAINT.name
114114
):
115115
abort(409, message="Category with this name already exists")
116-
raise ie
116+
raise
117117

118118
return category
119119

@@ -210,7 +210,7 @@ def put(self, data, id):
210210
== category_subcategory.primary_key.name
211211
):
212212
abort(409, message="Category and subcategory already linked")
213-
raise ie
213+
raise
214214

215215
return category
216216

0 commit comments

Comments
 (0)