Skip to content

Commit

Permalink
Merge branch 'main' into colorizing
Browse files Browse the repository at this point in the history
  • Loading branch information
rsalmei committed Nov 9, 2023
2 parents 20def09 + 2b4d3cb commit 77793a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog


## 3.1.5 - Nov 08, 2023
- ignore more errors when trying to set hooks (it seems `pyam` uses `setuptools_scm` which does `assert value is sys.stderr` in `setStream()` for whatever reason)


## 3.1.4 - May 31, 2023
- support spaces at the start and end of titles and units (removed trim)

Expand Down
2 changes: 1 addition & 1 deletion alive_progress/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .core.configuration import config_handler
from .core.progress import alive_bar, alive_it

VERSION = (3, 1, 4)
VERSION = (3, 1, 5)

__author__ = 'Rogério Sampaio de Almeida'
__email__ = '[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions alive_progress/core/hook_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def get_all_loggers():
def set_hook(h):
try:
return h.setStream(get_hook_for(h))
except AttributeError:
pass # ignores errors and return None
except Exception: # captures AttributeError, AssertionError, and anything else,
pass # then returns None, effectively leaving that handler alone, unchanged.

# account for reused handlers within loggers.
handlers = set(h for logger in get_all_loggers()
Expand Down

0 comments on commit 77793a6

Please sign in to comment.