Skip to content

Commit

Permalink
Merge branch 'fix/nonetype-error' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
exhuma committed May 2, 2024
2 parents 416a09c + df97bad commit 2fd5cc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Version 2.2
* [2.2.3] - fix: Path highlighting in exception messages should now work with
absolute paths

* [2.2.4] - fix: regression introduced in 2.23

Version 2.1
-----------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "gouge"
version = "2.2.3"
version = "2.2.4"
authors = [
{name = "Michel Albert", email = "michel@albert.lu"},
]
Expand Down
4 changes: 3 additions & 1 deletion src/gouge/colourcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ def __init__(
self.pre_formatters = pre_formatters or {}
if (Path.cwd() / "src").exists():
self.highlighted_path = (Path.cwd() / "src").absolute()
else:
elif highlighted_path is not None:
self.highlighted_path = (highlighted_path).absolute()
else:
self.highlighted_path = highlighted_path

def format(self, record: LogRecord) -> str:
if record.levelno <= logging.DEBUG:
Expand Down

0 comments on commit 2fd5cc9

Please sign in to comment.