Skip to content

Commit

Permalink
Refactor RouteProvider to handle exceptions and set response status t…
Browse files Browse the repository at this point in the history
…o 500
  • Loading branch information
josephmancuso committed Oct 23, 2024
1 parent fc44a6b commit 65be2bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/masonite/providers/RouteProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def boot(self):
else:
response.view(data)
except Exception as e:
response.status(500)
exception = e

self.application.make("middleware").run_route_middleware(
Expand Down

0 comments on commit 65be2bd

Please sign in to comment.