Update to v2.10.0

This commit is contained in:
Lost-MSth
2022-10-04 18:51:49 +08:00
parent 7a614eaa57
commit fb110fd01c
6 changed files with 63 additions and 24 deletions

View File

@@ -5,7 +5,7 @@ from core.error import ArcError
from flask import current_app, jsonify
from setting import Config
default_error = ArcError('Unknown Error')
default_error = ArcError('Unknown Error', status=500)
def error_return(e: ArcError = default_error): # 错误返回