Skip to content

Commit

Permalink
Modify format_err_msg()
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeqfu committed Jun 10, 2023
1 parent 66914b1 commit 83e311b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyrcs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ def format_err_msg(e):
"""

if e:
err_msg = f"{e}"
err_msg = err_msg + "." if not err_msg.endswith(".") else err_msg
e_ = f"{e}"
err_msg = e_ + "." if not e_.endswith((".", "!", "?")) else e_
else:
err_msg = ""

Expand Down

0 comments on commit 83e311b

Please sign in to comment.