Skip to main content

Hook your Error.

Project description

ErrorHook

自动全局捕捉错误,并

  • 输出错误到控制台
  • 输出错误到文件(可选,默认开启)
  • 显示错误窗口(可选,默认开启)

Code by: cc1287

示例

import ErrorHook
# 然后...就什么都不用做了,会自动捕捉错误

# 下面有一个错误
raise BaseException('I am a Error.')

安装

pip install ErrorHook

License

MIT License

Copyright (c) 2024 cc1287

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

更新日志

  • 2.1.1

增加错误堆栈滚动条

  • 2.0.2

现在可以按回车键(Enter)退出

  • 2.0.1

更改简介

  • 2.0

将名字又改了回来,兼容性问题

移除了对KeyboardInterrupt的捕获

现在将自动将焦点移至“退出”按钮

  • 1.2~1.6

让导入更便捷,更改导入名称从ErrorHookerrorhook(已在2.0删除)

  • 1.1

更新界面-退出按钮

  • 1.0

update

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

errorhook-2.2.5.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ErrorHook-2.2.5-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file errorhook-2.2.5.tar.gz.

File metadata

  • Download URL: errorhook-2.2.5.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for errorhook-2.2.5.tar.gz
Algorithm Hash digest
SHA256 dc233f4affd3501af476a17f3ffcbe4250a76a8e676d783e4a5c113ad08e1379
MD5 37e4c0daf47bc5fa5022b34d45723761
BLAKE2b-256 dd60acdee4d0085a282a56ae0ed01037bcf9f6f939907fc74e772baf36fb20ff

See more details on using hashes here.

File details

Details for the file ErrorHook-2.2.5-py3-none-any.whl.

File metadata

  • Download URL: ErrorHook-2.2.5-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for ErrorHook-2.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f37dead917404eff101cf9c88f959f7cffc79590b42c6c46eae53558721f3037
MD5 fdd20a340b4dcfdd8424d00e0c2e1ff6
BLAKE2b-256 59513cd7d637c2b409f6aa0e99e5316c04df1eb273cc1a1cb3dd0198f40c6f47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page