diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 60a3f756c7a..07938ca8c8a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: - run: bandit -r . || true - run: black --check . - run: codespell --ignore-words-list="mape" --quiet-level=2 --skip=".git" # --skip="" - - run: flake8 . --count --ignore=E203,E302,E722,F401,F841,W503 --max-line-length=140 --show-source --statistics + - run: flake8 . --count --ignore=E203,E302,F401,F841,W503 --max-line-length=140 --show-source --statistics - run: mypy --ignore-missing-imports . || true - run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true - run: safety check diff --git a/terminal.py b/terminal.py index 92100a06cff..5f749b309ce 100644 --- a/terminal.py +++ b/terminal.py @@ -464,8 +464,9 @@ def main(): b_quit = pm.pred_menu( df_stock_pred, s_ticker, s_start, s_interval="1440min" ) - except: + except Exception as e: print("Either the ticker or the API_KEY are invalids. Try again!") + print(e) b_quit = False return