Skip to content

fix: avoid crash for private market events without value#331

Open
saschabuehrle wants to merge 1 commit intopytr-org:masterfrom
saschabuehrle:fix/issue-322-private-markets-null-value
Open

fix: avoid crash for private market events without value#331
saschabuehrle wants to merge 1 commit intopytr-org:masterfrom
saschabuehrle:fix/issue-322-private-markets-null-value

Conversation

@saschabuehrle
Copy link
Copy Markdown

Fixes #322

Some private market timeline events (for example Vorabpauschale entries) have no monetary value. The exporter currently asserts on those events and aborts the whole export.

This change skips only the malformed private-market event, logs a warning, and continues exporting the remaining transactions. Added a regression test for this case.

Greetings, saschabuehrle

@RealCLanger
Copy link
Copy Markdown
Collaborator

Seems like a good bandaid. However, maybe we should generate a PPEventType.TAXES event with a value of 0 in that case. Would you mind sharing the (redacted) event from all_events.json that causes the issue?

@RealCLanger
Copy link
Copy Markdown
Collaborator

With #341 I have fixed an issue with private markets Vorabpauschale. Please check if it helps in your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AssertionError for Vorabpauschale Private Equity

2 participants