Merge pull request #100 from cclauss/do-not-use-bare-except

PEP8: Do not use bare 'except'
This commit is contained in:
DidierRLopes
2021-03-06 02:50:23 +00:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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