Qix- / better-exceptions
- четверг, 23 марта 2017 г. в 03:11:42
Python
Pretty and useful exceptions in Python, automatically.
Pretty and more helpful exceptions in Python, automatically.
Install better_exceptions via pip:
$ pip install better_exceptionsAnd import it somewhere:
import better_exceptionsThat's it!
If you want to allow the entirety of values to be outputted instead of being truncated to a certain amount of characters:
better_exceptions.MAX_LENGTH = Noneimport better_exceptions by adding a startup hookCopyright © 2017, Josh Junon. Licensed under the MIT license.