Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当异常发生的行不在被 TryExcept 装饰的函数内部时,行数定位可能会出现错误 #7

Open
2018-11-27 opened this issue Jun 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@2018-11-27
Copy link
Member

No description provided.

@2018-11-27 2018-11-27 added the bug Something isn't working label Jun 17, 2024
@2018-11-27 2018-11-27 self-assigned this Jun 17, 2024
2018-11-27 added a commit to 2018-11-27/gqylpy-exception that referenced this issue Jun 24, 2024
1.Added a new context manager `TryContext` to support contextual exception handling.
2.The parameters `silent_exc` and `raw_exc` are deprecated and replaced with `silent` and `raw`.
3.Fixed an issue where the line number positioning could be incorrect when an exception occurs on a line outside the function decorated by `TryExcept`. gqylpy#7
4.Refactored the code segments for exception parsing and handling, resulting in a faster solution.
5.Added support for automatically setting the `stacklevel` parameter when acquiring the logger method.
6.Improved numerous comments and type annotations.
7.Updated the README file to reflect the above changes.

1.新增上下文管理器 `TryContext`,以支持上下文异常处理。
2.参数 `silent_exc` 和 `raw_exc` 将弃用,更新为 `silent` 和 `raw`。
3.修复问题:当异常发生的行不在被 `TryExcept` 装饰的函数内部时,行数定位可能会出现错误。gqylpy#7
4.重构异常解析和异常处理的代码段,重构后的方案速度更快。
5.在获取日志记录器方法时支持自动设置 `stacklevel` 参数。
6.改进大量注释和类型注解。
7.对于以上改动更新自述文件。
@2018-11-27 2018-11-27 mentioned this issue Jun 24, 2024
Merged
@2018-11-27
Copy link
Member Author

已修复 #9,版本: 3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant