Skip to content

Commit

Permalink
Fix try/except flow for item PUT
Browse files Browse the repository at this point in the history
remove `raise` before `return`
  • Loading branch information
andrew-harding-gh authored Jan 18, 2020
1 parent 23a1797 commit 4827d02
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion section5/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4827d02

Please sign in to comment.