pytr icon indicating copy to clipboard operation
pytr copied to clipboard

Exception when get details for BMW

Open miry opened this issue 3 years ago • 0 comments

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

  • OS: MacOS 12.4 / M1
  • pytr version: 0.1.5
  • Python 3.9.12

miry avatar May 18 '22 18:05 miry