-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] /Stocks/SIA - load function doesn't work. Error: 'NoneType' object is not subscriptable #2684
Comments
@deeleeramone I had a quick look at this and it looks like it's intermittent. The first time I loaded I got the same error (it makes no difference if it's loaded before going to The reason is that we load this data from Yahoo Finance and the data (which they call Making it not crash with that error is trivial, but my main question is how should we report this kind of errors? I am very new to this project, but it does look like that menu cannot be used unless we know the sector, country and industry. A good solution would be to find an alternative source if we can't find it in Yahoo Finance, can someone help me understand if we have an alternative source implemented? |
Hmmm, @catalintoma I think you are right. We are relying on the Sector, Industry and Country from Yahoo Finance. This is also because this menu utilizes FinanceDatabase which is built on top of Yahoo Finance. So I think it is not trivial to use another source in here, unfortunately |
Has this been fixed? I can't seem to reproduce it. |
As I wrote in the first comment, it is intermittent I want to improve the error message and refactor some duplicate code in that controller tomorrow morning, but as @DidierRLopes said we don't have an alternative source, so not that much we can do. |
Sounds good! I was just wanting to replace the NoneType error with a message that is more readable to a non coder. |
Done! |
…#2723) Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Recreate by entering the menu with no stock loaded, then load a ticker from any source.
The text was updated successfully, but these errors were encountered: