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

Refactor pretty exception formatting #76

Merged
merged 22 commits into from
Mar 31, 2019
Merged

Conversation

Delgan
Copy link
Owner

@Delgan Delgan commented Mar 31, 2019

A bunch of changes made to the exception formatting, including: replacing better_exceptions(_fork) library with a new _better_exceptions.py module, separating exception formatting / extending with new diagnose option in addition to backtrace (#49), making some fixes (#50, #52, Windows colors and others edge cases).

Delgan added 22 commits March 31, 2019 09:59
This is done for several reasons:

* Avoid the need of maintaining a second package
* Allow changes to Loguru to be made faster
* More freedom about exception formatting
* Prevent my biaised opinion to bother "better_exceptions" maintainer
* Half of "better_exceptions" implementation isn't useful to Loguru
  (repl, cmd, color support checks, hook, logging, encoding)
* Remove the risk of conflict between the two packages
* Avoid addind the ".pth" file for "better_exceptions" while installing Loguru
* I know the "better_exceptions" codebase well enough (and it's quite simple)
* One less dependency is always welcome
@Delgan Delgan merged commit d481da8 into master Mar 31, 2019
@Delgan Delgan deleted the vendorize_better_exceptions branch March 31, 2019 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant