Skip to content

Commit a109af9

Browse files
ShaharNavehproost
authored andcommitted
Fixed small mistake (pandas-dev#29815)
1 parent 55c6855 commit a109af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/tslibs/strptime.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def array_strptime(object[:] values, object fmt,
110110
f"in format '{fmt}'")
111111
# IndexError only occurs when the format string is "%"
112112
except IndexError:
113-
raise ValueError("stray % in format '{fmt}'")
113+
raise ValueError(f"stray % in format '{fmt}'")
114114
_regex_cache[fmt] = format_regex
115115

116116
result = np.empty(n, dtype='M8[ns]')

0 commit comments

Comments
 (0)