ErisPulse 1.2.7__py3-none-any.whl → 1.2.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ErisPulse/raiserr.py +7 -3
- {erispulse-1.2.7.dist-info → erispulse-1.2.9.dist-info}/METADATA +1 -2
- {erispulse-1.2.7.dist-info → erispulse-1.2.9.dist-info}/RECORD +6 -6
- {erispulse-1.2.7.dist-info → erispulse-1.2.9.dist-info}/WHEEL +0 -0
- {erispulse-1.2.7.dist-info → erispulse-1.2.9.dist-info}/entry_points.txt +0 -0
- {erispulse-1.2.7.dist-info → erispulse-1.2.9.dist-info}/licenses/LICENSE +0 -0
ErisPulse/raiserr.py
CHANGED
|
@@ -25,7 +25,7 @@ class CustomBase(Exception):
|
|
|
25
25
|
sdk.raiserr.register("AdvancedError", "高级错误", CustomBase)
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
#### info(name: str = None) -> Dict[str, Any]
|
|
28
|
+
#### info(name: str = None) -> Dict[str, Any] or None
|
|
29
29
|
获取错误类型信息。
|
|
30
30
|
- 参数:
|
|
31
31
|
- name: 错误类型名称,如果为None则返回所有错误类型信息
|
|
@@ -99,7 +99,7 @@ class Error:
|
|
|
99
99
|
raise exc
|
|
100
100
|
return raiser
|
|
101
101
|
|
|
102
|
-
def info(self, name: str = None) -> Dict[str, Any]
|
|
102
|
+
def info(self, name: str = None) -> Dict[str, Any]:
|
|
103
103
|
result = {}
|
|
104
104
|
for err_name, err_cls in self._types.items():
|
|
105
105
|
result[err_name] = {
|
|
@@ -111,7 +111,11 @@ class Error:
|
|
|
111
111
|
return result
|
|
112
112
|
err_cls = self._types.get(name)
|
|
113
113
|
if not err_cls:
|
|
114
|
-
return
|
|
114
|
+
return {
|
|
115
|
+
"type": None,
|
|
116
|
+
"doc": None,
|
|
117
|
+
"class": None,
|
|
118
|
+
}
|
|
115
119
|
return {
|
|
116
120
|
"type": name,
|
|
117
121
|
"doc": getattr(err_cls, "__doc__", ""),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ErisPulse
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.9
|
|
4
4
|
Summary: ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用于构建高效、可维护的机器人应用程序。
|
|
5
5
|
Author-email: "艾莉丝·格雷拉特(WSu2059)" <wsu2059@qq.com>, runoneall <runoobsteve@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -46,7 +46,6 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
46
46
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
47
47
|
Requires-Python: >=3.8
|
|
48
48
|
Requires-Dist: aiohttp
|
|
49
|
-
Requires-Dist: importlib
|
|
50
49
|
Requires-Dist: pip
|
|
51
50
|
Requires-Dist: watchdog
|
|
52
51
|
Description-Content-Type: text/markdown
|
|
@@ -4,10 +4,10 @@ ErisPulse/adapter.py,sha256=sho8HMYVSa3syovU2mDxV2Wsw99yD5_sFz6UER89Tes,14367
|
|
|
4
4
|
ErisPulse/db.py,sha256=mSLLxjqOxSwvMbBSYCpH9TvCvdfccWrKJx6GtkhAl8U,23881
|
|
5
5
|
ErisPulse/logger.py,sha256=ftXp4bfk0S5cnkK4wmF5WqhvuzpUL4MXsuJa-ZTBoMs,8760
|
|
6
6
|
ErisPulse/mods.py,sha256=2OgueJPetQ5N1uDr5DiFvDZ4zF1HSuZ4OsL8IFDqro8,9976
|
|
7
|
-
ErisPulse/raiserr.py,sha256=
|
|
7
|
+
ErisPulse/raiserr.py,sha256=vUhJKrxwAf7ituacOZv2z2YeY4xxfMG-oLHXiDCHrBs,4176
|
|
8
8
|
ErisPulse/util.py,sha256=eXtmW39bCjbV8lxOmOro4b4gyBhKo-db_EeffJ9BDf0,4525
|
|
9
|
-
erispulse-1.2.
|
|
10
|
-
erispulse-1.2.
|
|
11
|
-
erispulse-1.2.
|
|
12
|
-
erispulse-1.2.
|
|
13
|
-
erispulse-1.2.
|
|
9
|
+
erispulse-1.2.9.dist-info/METADATA,sha256=Qf5mU81APxguKIJ36OPN8EJN45a6ofw-Gc3F2zgCLvE,6696
|
|
10
|
+
erispulse-1.2.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
11
|
+
erispulse-1.2.9.dist-info/entry_points.txt,sha256=y8ppdsQhk-azC7_ikQgRr4rITSZ4VC4crVKtzHh4TBY,146
|
|
12
|
+
erispulse-1.2.9.dist-info/licenses/LICENSE,sha256=qAe8UGD2uYa8mUPqffBkdIS_4Q5d66FlhYuo3eC_Dq8,1396
|
|
13
|
+
erispulse-1.2.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|