From fa35e0bd7bf027926ca7633f26e6b9c99d1dcf05 Mon Sep 17 00:00:00 2001 From: didier Date: Thu, 25 Mar 2021 22:46:01 +0000 Subject: [PATCH] Remove exception when confirming if ticker name exists --- gamestonk_terminal/behavioural_analysis/reddit_view.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gamestonk_terminal/behavioural_analysis/reddit_view.py b/gamestonk_terminal/behavioural_analysis/reddit_view.py index 7f4da5c6a36..febfb402ba0 100644 --- a/gamestonk_terminal/behavioural_analysis/reddit_view.py +++ b/gamestonk_terminal/behavioural_analysis/reddit_view.py @@ -1,6 +1,7 @@ import argparse import warnings -from datetime import datetime, timedelta + +# from datetime import datetime, timedelta import pandas as pd from prawcore.exceptions import ResponseException from requests import HTTPError @@ -140,7 +141,7 @@ def watchlist(l_args): if int(t_ticker[1]) > 1: s_watchlist_tickers += f"{t_ticker[1]} {t_ticker[0]}, " n_tickers += 1 - except Exception as e: + except Exception: # print(e, "\n") pass if n_tickers: @@ -471,7 +472,7 @@ def spac_community(l_args): if int(t_ticker[1]) > 1: s_watchlist_tickers += f"{t_ticker[1]} {t_ticker[0]}, " n_tickers += 1 - except Exception as e: + except Exception: # print(e, "\n") pass @@ -620,7 +621,7 @@ def spac(l_args): if int(t_ticker[1]) > 1: s_watchlist_tickers += f"{t_ticker[1]} {t_ticker[0]}, " n_tickers += 1 - except Exception as e: + except Exception: # print(e, "\n") pass if n_tickers: