Skip to content

Commit 276a73f

Browse files
committed
#15094: Fix missing format variable
1 parent d8fb5a8 commit 276a73f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netbox/utilities/forms/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ def parse_csv(reader):
237237
for i, row in enumerate(reader, start=1):
238238
if len(row) != len(headers):
239239
raise forms.ValidationError(
240-
_("Row {i}: Expected {count_expected} columns but found {count_found}").format(
241-
count_expected=len(headers), count_found=len(row)
240+
_("Row {row}: Expected {count_expected} columns but found {count_found}").format(
241+
row=i, count_expected=len(headers), count_found=len(row)
242242
)
243243
)
244244
row = [col.strip() for col in row]

0 commit comments

Comments
 (0)