mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
Merge pull request #100 from cclauss/do-not-use-bare-except
PEP8: Do not use bare 'except'
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user