-
-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description of the bug
There seems to be something wrong with parsing my payment:
21:36:39 2/699: Deutsche Bahn -- None - 2026-01-05T22:54:40
Traceback (most recent call last):
[...]
File "<PATH>\pytr\dl.py", line 269, in dl_callback
ititle.startswith("Du hast ") and (ititle.endswith(" erhalten") or ititle.endswith(" gesendet"))
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith'To Reproduce
I ran the following command and the error occurs every time:
pytr dl_docs <PATH> --last_days 123
Expected behavior
pytr does not exit with an error
Error log
21:36:39 Timeline activity log: Subscribing to #1...
21:36:39 Timeline activity log: Received #1, subscribing to #2...
21:36:39 Timeline activity log: Received #2, subscribing to #3...
21:36:39 Timeline activity log: Received #3 (last relevant).
21:36:39 1/699: Neues Gerät -- None - 2025-12-05T21:10:00 Skip timeline detail: No action/actionLabel section
21:36:39 Requested all timeline details (699/699).
21:36:39 2/699: Deutsche Bahn -- None - 2026-01-05T22:54:40
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "<PATH>\anaconda3\envs\pytr\Scripts\pytr.exe\__main__.py", line 6, in <module>
File "<PATH>\pytr\main.py", line 495, in main
).do_dl()
^^^^^^^
File "<PATH>\pytr\dl.py", line 213, in do_dl
asyncio.run(self.tl.tl_loop())
File "<PATH>\anaconda3\envs\pytr\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "<PATH>\anaconda3\envs\pytr\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<PATH>\anaconda3\envs\pytr\Lib\asyncio\base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "<PATH>\pytr\timeline.py", line 108, in tl_loop
await self.process_timelineDetail(response, subscription.get("id"))
File "<PATH>\pytr\timeline.py", line 263, in process_timelineDetail
self.event_callback(event)
File "<PATH>\pytr\dl.py", line 269, in dl_callback
ititle.startswith("Du hast ") and (ititle.endswith(" erhalten") or ititle.endswith(" gesendet"))
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith'
Environment
- OS: Windows
- pytr version:
0.4.5
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working