唯妮: 也可以重写handle_error函数 [code=python] rom flask_restful import Api as _Api from import HTTPException class Api(_Api): def handle_error(self, e): if isinstance(e, HTTPException): raise HTTPException() else: raise Exception() [/code]
postgre通过sql释放空闲连接
【flask】已解决:使用flask-restful后errorhandler中间件无法拦截报错