Skip to content

Commit

Permalink
Convert id to int
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Jul 26, 2024
1 parent 55ea096 commit b81709c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/collective/feedback/restapi/services/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ def reply(self):
tool = getUtility(ICollectiveFeedbackStore)

if self.params:
id = self.params[0]
try:
id = int(self.params[0])
except ValueError:
raise BadRequest(f"Bad id={self.params[0]} format provided")

comment = tool.get(id)

Expand Down

0 comments on commit b81709c

Please sign in to comment.