From 4827d024c3d0254fd3d55e9a5814321cbeb62784 Mon Sep 17 00:00:00 2001 From: Andrew Harding <41498272+the-great-shazbot@users.noreply.github.com> Date: Sat, 18 Jan 2020 15:07:41 -0500 Subject: [PATCH] Fix try/except flow for item PUT remove `raise` before `return` --- section5/item.py | 1 - 1 file changed, 1 deletion(-) diff --git a/section5/item.py b/section5/item.py index c8e19524..b5a2010a 100644 --- a/section5/item.py +++ b/section5/item.py @@ -86,7 +86,6 @@ def put(self, name): try: Item.update(updated_item) except: - raise return {"message": "An error occurred updating the item."} return updated_item