Change make_response to Response to fix bug

This commit is contained in:
Scoder12
2020-07-30 13:00:22 -07:00
parent 28ccc7c3a3
commit 850e3aa29b
+1 -1
View File
@@ -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",