ErisPulse 2.1.7__py3-none-any.whl → 2.1.7rc1__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/Core/raiserr.py CHANGED
@@ -137,7 +137,10 @@ def global_exception_handler(exc_type: Type[Exception], exc_value: Exception, ex
137
137
  else:
138
138
  colored_traceback.append(f"{RED}{line}{RESET}")
139
139
 
140
- full_error = f"{error_title}\n{RED}Traceback:{RESET}\n{''.join(colored_traceback)}"
140
+ full_error = f"""
141
+ {error_title}
142
+ {RED}Traceback:{RESET}
143
+ {colored_traceback}"""
141
144
 
142
145
  sys.stderr.write(full_error)
143
146
 
@@ -166,7 +169,9 @@ def async_exception_handler(loop: asyncio.AbstractEventLoop, context: Dict[str,
166
169
  else:
167
170
  colored_tb.append(f"{RED}{line}{RESET}")
168
171
 
169
- error_msg = f"{RED}{type(exception).__name__}{RESET}: {YELLOW}{exception}{RESET}\n{RED}Traceback:{RESET}\n{'\n'.join(colored_tb)}"
172
+ error_msg = f"""{RED}{type(exception).__name__}{RESET}: {YELLOW}{exception}{RESET}
173
+ {RED}Traceback:{RESET}
174
+ {colored_tb}"""
170
175
  sys.stderr.write(error_msg)
171
176
  else:
172
177
  msg = context.get('message', 'Unknown async error')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ErisPulse
3
- Version: 2.1.7
3
+ Version: 2.1.7rc1
4
4
  Summary: ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用于构建高效、可维护的机器人应用程序。
5
5
  Author-email: "艾莉丝·格雷拉特(WSu2059)" <wsu2059@qq.com>, runoneall <runoobsteve@gmail.com>
6
6
  License: MIT License
@@ -5,11 +5,11 @@ ErisPulse/Core/adapter.py,sha256=lw5T336EsNtjUgSPdevcOZReZNkA8oYvvTRCHk_fo_o,181
5
5
  ErisPulse/Core/env.py,sha256=D2BwtSbKggbeAsOzwwVv-kd5UkVmYlDUHtgLzFZqKUI,19841
6
6
  ErisPulse/Core/logger.py,sha256=VYhWKPXn88ib7S_OKCr_MibdnMH8k5sHkwLtNDZP3QM,7034
7
7
  ErisPulse/Core/mods.py,sha256=2yIq8t9Ca9CBPRiZU0yr8Lc0XGmmkB7LlH-5FWqXjw4,7023
8
- ErisPulse/Core/raiserr.py,sha256=TQCKbYrfqu8tjX7dJiJemK0lZCQ4-5875nUGXgb8HUk,5606
8
+ ErisPulse/Core/raiserr.py,sha256=vlyaaiOIYkyqm9dAqSW9E54JBzX-9roHDp5_r6I0yUU,5591
9
9
  ErisPulse/Core/server.py,sha256=FkDTeLuHD5IBnWVxvYU8pHb6yCt8GzyvC1bpOiJ7G7I,9217
10
10
  ErisPulse/Core/util.py,sha256=7rdMmn6sBFqYd4znxBCcJjuv2eyTExdeKyZopgds868,3796
11
- erispulse-2.1.7.dist-info/METADATA,sha256=4xIp6y-QyDEaC13715lWFeEYK2D965Ij1EuToHiJ37U,6258
12
- erispulse-2.1.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
- erispulse-2.1.7.dist-info/entry_points.txt,sha256=Jss71M6nEha0TA-DyVZugPYdcL14s9QpiOeIlgWxzOc,182
14
- erispulse-2.1.7.dist-info/licenses/LICENSE,sha256=4jyqikiB0G0n06CEEMMTzTXjE4IShghSlB74skMSPQs,1464
15
- erispulse-2.1.7.dist-info/RECORD,,
11
+ erispulse-2.1.7rc1.dist-info/METADATA,sha256=7ITW_Im5RNEPNc6z5Nn5mMKRcfI-8FXV4kPsMYCPmeY,6261
12
+ erispulse-2.1.7rc1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
+ erispulse-2.1.7rc1.dist-info/entry_points.txt,sha256=Jss71M6nEha0TA-DyVZugPYdcL14s9QpiOeIlgWxzOc,182
14
+ erispulse-2.1.7rc1.dist-info/licenses/LICENSE,sha256=4jyqikiB0G0n06CEEMMTzTXjE4IShghSlB74skMSPQs,1464
15
+ erispulse-2.1.7rc1.dist-info/RECORD,,