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.

更新日志

  • 1.2

让导入更便捷,更改导入名称从ErrorHookerrorhook

  • 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-1.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

errorhook-1.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for errorhook-1.3.tar.gz
Algorithm Hash digest
SHA256 3a06ea070d690fb4bd36432bcdc1b4cba644896f395537b34b0e203df85598be
MD5 f36bd7821e8d159b4d5c4c8e59ded71c
BLAKE2b-256 a681424e3905e4e62869cc01903de5066847153317b020e6a9b29ab5bb4dd28b

See more details on using hashes here.

File details

Details for the file errorhook-1.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for errorhook-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1db4f8ab803e482ab9dfce1f4d863ef1b6a85bf205c9033a67e934d6ac1bc5d4
MD5 33571180211158a9447a8ee1fa8f9b91
BLAKE2b-256 c75441e517917ffdfe7f0c062d64c1d5f96b001a10e4b8f8ece417683fcdbe34

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