-
Notifications
You must be signed in to change notification settings - Fork 220
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
unsupported operand type(s) for -: 'datetime.datetime' and 'str' #180
Comments
Got rid of the unsupported operand type(s) for -: 'datetime.datetime' and 'str' but still som crumb error.
|
I run into the same problem today with yahoofinancials 1.20 installed from pypi. I patched cache.py as follows, and then it was working as expected. ` 373c373 ` |
Yes your update works as expected and a bit less code :). Thanks for the update. |
Problem Description:
Users may encounter the following error when running the get_key_statistics_data() function:
unsupported operand type(s) for -: 'datetime.datetime' and 'str'
Possible Cause:
This error occurs when trying to subtract a string from a datetime.datetime object. The issue is often related to date handling in the code.
I've created a PR that you can try out.
The text was updated successfully, but these errors were encountered: