mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-30 13:13:59 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user