Skip to content

Commit

Permalink
Fix error from breking change in dependency
Browse files Browse the repository at this point in the history
Error from object attribute change in frictionless Error
  • Loading branch information
hansendx committed Jun 27, 2024
1 parent 17902e5 commit c94c2f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paneldata_pipeline/check_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ def _print_error_table(errors: List[FrictionlessError]) -> None:
missing_labels = False
error_message_rows = []
for error in errors:
if error.code == "missing-label": # type: ignore
if error.type == "missing-label":
missing_labels = True
if error.code == "missing-cell" and missing_labels: # type: ignore
if error.type == "missing-cell" and missing_labels:
continue
error_message_rows.append([error.code, error.message]) # type: ignore
error_message_rows.append([error.type, error.message])
print(tabulate(error_message_rows, headers=["code", "message"], tablefmt="grid"))


Expand Down

0 comments on commit c94c2f4

Please sign in to comment.