Skip to content

Commit

Permalink
Change: Use else for logger warning (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
y0urself authored Sep 8, 2023
1 parent 34c947f commit c38b1e8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pontos/version/commands/_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@ def replace_string_in_file(
file_path.write_text(
content.replace(match.group(1), replacement), encoding="utf-8"
)
logging.warning(
"Couldn't match the pattern %s in the content of %s.",
pattern,
file_path,
)
logging.warning("Content: %s", content)
else:
logging.warning(
"Couldn't match the pattern %s in the content of %s.",
pattern,
file_path,
)
logging.warning("Content: %s", content)


# This class is used for Java Version command(s)
Expand Down

0 comments on commit c38b1e8

Please sign in to comment.