JerBouma / FinanceDatabase

This is a database of 300.000+ symbols containing Equities, ETFs, Funds, Indices, Currencies, Cryptocurrencies and Money Markets.
https://www.jeroenbouma.com/projects/financedatabase
MIT License
3.44k stars 387 forks source link

AttributeError is raised when calling select_etfs() with no parameter given #10

Closed jstesta closed 3 years ago

jstesta commented 3 years ago

Describe the bug AttributeError is raised when calling select_etfs() with no parameter given.

Expected behavior Method returns all ETFs.

Actual behavior The following error is raised:

Traceback (most recent call last): File "..snip..\lib\site-packages\FinanceDatabase\json_picker.py", line 113, in select_etfs json_data = json.loads(request.text).decode("UTF-8") AttributeError: 'dict' object has no attribute 'decode'

Additional context Version 0.1.9

JerBouma commented 3 years ago

Will look into this later this week. Seems it doesn't select the right JSON file.

JerBouma commented 3 years ago

Fixed this issue in version 0.1.10, please upgrade.