Closed SHerlockHolmes9527 closed 1 year ago
SanicException imported as abort try: from sanic.exceptions import abort except Exception: from sanic.exceptions import SanicException as abort
when some errors happened, abort is declared but not raised.
if errors: abort(status_code=400, message=errors)
if strict and req_temp.unparsed_arguments: abort( status_code=400, message='Unknown arguments: %s' % ', '.join( req_temp.unparsed_arguments.keys()))
return namespace
it has already fixed it in 0.2.0
SanicException imported as abort try: from sanic.exceptions import abort except Exception: from sanic.exceptions import SanicException as abort
when some errors happened, abort is declared but not raised.
if errors: abort(status_code=400, message=errors)
if strict and req_temp.unparsed_arguments: abort( status_code=400, message='Unknown arguments: %s' % ', '.join( req_temp.unparsed_arguments.keys()))
return namespace