ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
14.89k stars 2.44k forks source link

Fix syntax error in logger error message in _fetch_and_parse method #2096

Closed shkabrii closed 1 month ago

shkabrii commented 1 month ago

Fixed a syntax error in the _fetch_and_parse method. The logger.error call had mixed single and double quotes, which caused a syntax issue.

Updated the line to:


logger.error(f"Failed to get screener data for '{self._body.get('query', 'query not set')}' reason: {e}")
shkabrii commented 1 month ago

Closing this pull request as it's a duplicate of #2094, which addresses the same issue