Skip to content

Commit

Permalink
fix #2752
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe742 committed Jul 8, 2023
1 parent e374409 commit 15603aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sanic/blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ def register(self, app, options):
# Prepend the blueprint URI prefix if available
uri = self._setup_uri(future.uri, url_prefix)

route_error_format = (
future.error_format if future.error_format else error_format
)

version_prefix = self.version_prefix
for prefix in (
future.version_prefix,
Expand Down Expand Up @@ -358,7 +362,7 @@ def register(self, app, options):
future.unquote,
future.static,
version_prefix,
error_format,
route_error_format,
future.route_context,
)

Expand Down

0 comments on commit 15603aa

Please sign in to comment.