Skip to content

Commit

Permalink
Merge pull request #71 from ImageMarkup/fix-metadata-loc-bug
Browse files Browse the repository at this point in the history
Fix loc bug in metadata validation
  • Loading branch information
danlamanna authored Jan 15, 2024
2 parents 2e296d5 + fc0cd2c commit 9a010fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isic_cli/cli/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def validate(csv_file: io.BufferedReader):
MetadataRow.model_validate(row)
except ValidationError as e:
for error in convert_errors(e):
column = error["loc"][0]
column = error["loc"][0] if error["loc"] else ""
column_problems[(column, error["msg"])].append(i)

try:
Expand Down

0 comments on commit 9a010fa

Please sign in to comment.