pytr-org / pytr

Use TradeRepublic in terminal and mass download all documents
https://pypi.org/project/pytr/
MIT License
357 stars 59 forks source link

Exception when get details for BMW #33

Closed miry closed 8 months ago

miry commented 2 years ago

Description of the bug It is missing expected field for DE0005190003 (BMW)

To Reproduce Steps to reproduce the behavior:

$ pytr details DE0005190003
0:45:26 Logged in
20:45:26 Connecting to websocket ...
20:45:26 Connected to websocket ...
instrumentSuitability: {'instrumentId': 'DE0005190003', 'warnings': ['userExperience']}
Name: BAY.MOTOREN WERKE AG ST
ShortName: BMW
Type: stock
LSX: BMW BAY.MOTOREN WERKE AG ST
TDG: BMW Bayerische Motoren Werke AG
sector: Fahrzeuge
country: Deutschland
index: DAX
index: EUROSTOXX50
Traceback (most recent call last):
  File "/opt/homebrew/bin/pytr", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/lib/python3.9/site-packages/pytr/main.py", line 213, in main
    Details(login(phone_no=args.phone_no, pin=args.pin, web=not args.applogin), args.isin).get()
  File "/opt/homebrew/lib/python3.9/site-packages/pytr/details.py", line 89, in get
    self.overview()
  File "/opt/homebrew/lib/python3.9/site-packages/pytr/details.py", line 83, in overview
    self.news()
  File "/opt/homebrew/lib/python3.9/site-packages/pytr/details.py", line 75, in news
    for news in self.neonNews:
AttributeError: 'Details' object has no attribute 'neonNews'

Environment