mirror of
https://github.com/kennethreitz/replit-py.git
synced 2026-06-05 15:00:20 +00:00
Change make_response to Response to fix bug
This commit is contained in:
@@ -85,7 +85,7 @@ def needs_params(
|
||||
raise TypeError("All paramater names should be strings.")
|
||||
|
||||
def default_onerror(missing_param: str) -> flask.Response:
|
||||
return flask.make_response(
|
||||
return flask.Response(
|
||||
f"Parameter {missing_param!r} is required but is missing",
|
||||
400,
|
||||
mimetype="text/plain",
|
||||
|
||||
Reference in New Issue
Block a user