Added catch-all exception for popular_tickers method of reddit view.

Program crashes if your Reddit password is incorrect and you use popular
function of behavioral analysis.
This commit is contained in:
Ryan Massoth
2021-04-03 18:27:02 -04:00
parent df5228c5f2
commit 3ff885b46f

View File

@@ -1,7 +1,7 @@
import argparse
import warnings
import pandas as pd
from prawcore.exceptions import ResponseException
from prawcore.exceptions import ResponseException, OAuthException
from requests import HTTPError
from psaw import PushshiftAPI
import praw
@@ -359,6 +359,9 @@ def popular_tickers(l_args):
)
return
except Exception as e:
print(e, "\n")
def spac_community(l_args):
parser = argparse.ArgumentParser(