Skip to content

Commit

Permalink
v1.2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
onelivesleft committed Jan 10, 2020
1 parent 8d65f95 commit 37d0820
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v1.2.10

* Minor fixes


# v1.2.9

* Added `replace_stderr` function to allow for situation where `pretty_errors` cannot gain access to `sys.excepthook`.
Expand Down
1 change: 1 addition & 0 deletions pretty_errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ def write(self, text):


def replace_stderr():
"""Replace sys.stderr, for cases where standard use with activate() does not work."""
sys.stderr = StdErr()


Expand Down
4 changes: 4 additions & 0 deletions pretty_errors/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ def get_choice(query, choices, default = None):
# Use if you do not have a color terminal:
#pretty_errors.mono()
# Use if you are using a framework which is handling all the exceptions before pretty_errors can:
#if pretty_errors.active:
# pretty_errors.replace_stderr()
# Use to hide frames whose file begins with these paths:
#pretty_errors.blacklist('/path/to/blacklist', '/other/path/to/blacklist', ...)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pretty_errors",
version="1.2.9",
version="1.2.10",
author="Iain King",
author_email="iain.king@gmail.com",
description="Prettifies Python exception output to make it legible.",
Expand Down

0 comments on commit 37d0820

Please sign in to comment.