Skip to content

Commit 4a73231

Browse files
committed
Fix error message
1 parent 3ae4449 commit 4a73231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
461461
z = z[:3] + z[4:]
462462
if len(z) > 5:
463463
if z[5] != ':':
464-
msg = f"Inconsistent use of : in {z}"
464+
msg = f"Inconsistent use of : in {found_dict[group_key]}"
465465
raise ValueError(msg)
466466
z = z[:5] + z[6:]
467467
hours = int(z[1:3])

0 commit comments

Comments
 (0)