diff --git a/reddit/subreddit.py b/reddit/subreddit.py index 9a4769c..508cdc5 100644 --- a/reddit/subreddit.py +++ b/reddit/subreddit.py @@ -50,8 +50,7 @@ def get_subreddit_threads(subreddit_): subreddit = reddit.subreddit(re.sub(r"r\/", "", os.getenv("SUBREDDIT"))) else: subreddit = reddit.subreddit("askreddit") - - print_substep("Subreddit not defined. Using AskReddit.") + print_substep("Subreddit not defined. Using AskReddit.") threads = subreddit.hot(limit=25) submission = list(threads)[random.randrange(0, 25)] diff --git a/setup.py b/setup.py index 7aa2f6f..c61aa9d 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,3 @@ -from re import M from setuptools import setup, find_packages diff --git a/video_creation/background.py b/video_creation/background.py index 3bf8529..514388b 100644 --- a/video_creation/background.py +++ b/video_creation/background.py @@ -45,8 +45,6 @@ def download_background(background): else: # if the link is not youtube link raise ValueError except ( - ConnectionError, - FileNotFoundError, ValueError # add more exceptions ):