From 4be9159e33ed461998e78e9454eef4b6ac2d26f0 Mon Sep 17 00:00:00 2001 From: Henry Simons Date: Tue, 16 Mar 2021 20:28:22 +0000 Subject: [PATCH] Return instead of brea --- gamestonk_terminal/sentiment/reddit_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gamestonk_terminal/sentiment/reddit_api.py b/gamestonk_terminal/sentiment/reddit_api.py index 681b45fe38e..62eb029bafa 100644 --- a/gamestonk_terminal/sentiment/reddit_api.py +++ b/gamestonk_terminal/sentiment/reddit_api.py @@ -124,7 +124,7 @@ def watchlist(l_args): print( "Received a response from Reddit with an authorization error. check your token.\n" ) - break + return if n_flair_posts_found: lt_watchlist_sorted = sorted( @@ -292,7 +292,7 @@ def popular_tickers(l_args): print( "Received a response from Reddit with an authorization error. check your token.\n" ) - break + return print(f" {n_tickers} potential tickers found.") @@ -599,7 +599,7 @@ def spac(l_args): print( "Received a response from Reddit with an authorization error. check your token.\n" ) - break + return if n_flair_posts_found: lt_watchlist_sorted = sorted( @@ -704,6 +704,6 @@ def wsb_community(l_args): print( "Received a response from Reddit with an authorization error. check your token.\n" ) - break + return except Exception as e: print(e, "\n")