Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show line number when cannot process a transaction #102

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/rp2/ods_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,13 @@ def parse_ods(configuration: Configuration, asset: str, input_file_handle: Any)
else:
raise RP2ValueError(f"{asset}({i + 1}): Found data with no header")
elif current_table_type is not None and current_table_row_count > 1:
# Transaction line
_create_and_process_transaction(
configuration, row_values, current_table_type, i + 1, artificial_internal_id, unfiltered_transaction_sets, artificial_transaction_list
)
try:
# Transaction line
_create_and_process_transaction(
configuration, row_values, current_table_type, i + 1, artificial_internal_id, unfiltered_transaction_sets, artificial_transaction_list
)
except RP2Error as exc:
raise RP2ValueError(f"{asset}({i + 1}): {exc}") from exc
current_table_row_count += 1

if current_table_type is not None:
Expand Down
Loading