Skip to content

Commit a14ab4a

Browse files
committed
Add \n to strftime warning msg
1 parent af20515 commit a14ab4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythainlp/util/strftime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _std_strftime(dt_obj: datetime, fmt_char: str) -> str:
4444
# in that case just use the fmt_char
4545
warnings.warn(
4646
(
47-
f"String format directive unknown/not support: %{fmt_char}"
47+
f"String format directive unknown/not support: %{fmt_char}\n"
4848
f"The system raises this ValueError: {err}"
4949
),
5050
UserWarning,

0 commit comments

Comments
 (0)