app.register_error_handler(Exception, handle_error_json())
改正后
app.register_error_handler(Exception, handle_error_json)
来源:CSDN
作者:weixin_45603120
链接:https://blog.csdn.net/weixin_45603120/article/details/104717806