🔧 修改服务加载时捕获的异常类

This commit is contained in:
洛水居室 2022-07-27 00:26:35 +08:00
parent ad8a96ae8d
commit f9b8048f1b
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -92,7 +92,7 @@ class AppsManager:
handlers_list = func(**kwargs)
class_name = handlers_list.__class__.__name__
ServiceDict.setdefault(class_name, handlers_list)
except Exception as exc:
except BaseException as exc:
Log.error("初始化Service失败", exc)
finally:
pass