Skip to content

Commit

Permalink
Merge branch 'fix/2.2.1' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
exhuma committed Apr 7, 2024
2 parents 419474f + 8c9ffe6 commit 4e935a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gouge/colourcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def format(self, record: LogRecord) -> str:

def formatException(self, exc_info: tuple) -> str:
exc_text = super().formatException(exc_info)
if '{' in exc_text or '}' in exc_text:
exc_text = exc_text.replace('{', '{{').replace('}', '}}')
if "{" in exc_text or "}" in exc_text:
exc_text = exc_text.replace("{", "{{").replace("}", "}}")
if self.highlighted_path is None:
return exc_text

Expand Down

0 comments on commit 4e935a7

Please sign in to comment.