mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
#15094: Fix missing format variable
This commit is contained in:
parent
d8fb5a819f
commit
276a73f820
@ -237,8 +237,8 @@ def parse_csv(reader):
|
|||||||
for i, row in enumerate(reader, start=1):
|
for i, row in enumerate(reader, start=1):
|
||||||
if len(row) != len(headers):
|
if len(row) != len(headers):
|
||||||
raise forms.ValidationError(
|
raise forms.ValidationError(
|
||||||
_("Row {i}: Expected {count_expected} columns but found {count_found}").format(
|
_("Row {row}: Expected {count_expected} columns but found {count_found}").format(
|
||||||
count_expected=len(headers), count_found=len(row)
|
row=i, count_expected=len(headers), count_found=len(row)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
row = [col.strip() for col in row]
|
row = [col.strip() for col in row]
|
||||||
|
Loading…
Reference in New Issue
Block a user