Skip to content

AssertionError for Vorabpauschale Private Equity #322

@mor3dr3ad

Description

@mor3dr3ad

Description of the bug
While downloading with uvx from master pytr throws an assertion error

To Reproduce
Steps to reproduce the behavior: run uvx dl_docs

  1. Go to '...'
  2. Ran the command pytr ....
  3. Do '....'
  4. See error

Expected behavior
A clean run and download

Error log

Traceback (most recent call last):
  File "/home/mor3dr3ad/.cache/uv/archive-v0/P3nuFQhDiIH0L2nZ3YDqj/bin/pytr", line 12, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/mor3dr3ad/.cache/uv/archive-v0/P3nuFQhDiIH0L2nZ3YDqj/lib/python3.14/site-packages/pytr/main.py", line 504, in main
    ).do_dl()
      ~~~~~^^
  File "/home/mor3dr3ad/.cache/uv/archive-v0/P3nuFQhDiIH0L2nZ3YDqj/lib/python3.14/site-packages/pytr/dl.py", line 231, in do_dl
    ).export(
      ~~~~~~^
        f,
        ^^
    ...<2 lines>...
        format=self.format_export,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/mor3dr3ad/.cache/uv/archive-v0/P3nuFQhDiIH0L2nZ3YDqj/lib/python3.14/site-packages/pytr/transactions.py", line 291, in export
    writer.writerows(transactions)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/csv.py", line 228, in writerows
    return self.writer.writerows(map(self._dict_to_list, rowdicts))
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mor3dr3ad/.cache/uv/archive-v0/P3nuFQhDiIH0L2nZ3YDqj/lib/python3.14/site-packages/pytr/transactions.py", line 283, in <genexpr>
    transactions = (txn for event in events for txn in self.from_event(event))
                                                       ~~~~~~~~~~~~~~~^^^^^^^
  File "/home/mor3dr3ad/.cache/uv/archive-v0/P3nuFQhDiIH0L2nZ3YDqj/lib/python3.14/site-packages/pytr/transactions.py", line 221, in from_event
    assert event.value is not None, event
           ^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Event(event_type=<ConditionalEventType.PRIVATE_MARKETS_ORDER: 1>, date=datetime.datetime(2026, 3, 9, 7, 56, 12, 429000, tzinfo=datetime.timezone.utc), title='Private Equity', isin='LU3176111881', isin2=None, shares=0, shares2=None, value=None, fees=None, taxes=None, note='Vorabpauschale')

Environment

  • OS: arch linux
  • pytr version: ran with uvx, so latest version

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions