ConradSelig / cliStocksTracker

A command line utility for tracking a stock market portfolio. Primarily featuring high resolution braille graphs.
Apache License 2.0
55 stars 14 forks source link

Graceful network error message #27

Closed ConradSelig closed 3 years ago

ConradSelig commented 3 years ago

If yfinance cannot get the stock data from the web (due to lack of internet for example), it throws out a horrendous block of error messages that is rather intimidating.

This should be a pretty easy fix - just wrap the yfinance download in a try-catch block so that instead of throwing that big error message it just drops a "cliStocksTracker must be connected to the internet to function." message (or something else, exact verbage is up to whoever takes this ticket).