Skip to content

Commit

Permalink
APIGateway: Refactor request handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers committed Apr 24, 2024
1 parent 9c53d1b commit 650d01e
Show file tree
Hide file tree
Showing 6 changed files with 674 additions and 795 deletions.
4 changes: 3 additions & 1 deletion moto/apigateway/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,9 @@ def apply_operations(self, patch_operations: List[Dict[str, Any]]) -> "Authorize
elif "/type" in op["path"]:
self.type = op["value"]
else:
raise Exception(f'Patch operation "{op["op"]}" not implemented')
raise BadRequestException(
f'Patch operation "{op["op"]}" not implemented'
)
return self


Expand Down
Loading

0 comments on commit 650d01e

Please sign in to comment.