Skip to content

Commit

Permalink
Fix view_func_wrapper name
Browse files Browse the repository at this point in the history
  • Loading branch information
NadavTasher committed Feb 6, 2024
1 parent f611899 commit ba66f06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions image/src/backend/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def view_func_wrapper(**flask_kwargs):
# Create error response from exception
return str(exception), 500

# Update the function name
view_func_wrapper.__name__ = view_func.__name__ + "_" + repr(options.get("methods"))

# Add the url rule using the parent
return super(Router, self).add_url_rule(rule, endpoint, view_func_wrapper, provide_automatic_options, **options)

Expand Down

0 comments on commit ba66f06

Please sign in to comment.