Skip to content

Commit 4827d02

Browse files
Fix try/except flow for item PUT
remove `raise` before `return`
1 parent 23a1797 commit 4827d02

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

section5/item.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def put(self, name):
8686
try:
8787
Item.update(updated_item)
8888
except:
89-
raise
9089
return {"message": "An error occurred updating the item."}
9190
return updated_item
9291

0 commit comments

Comments
 (0)