Ignore r/ in subreddit names
This commit is contained in:
1 parent
d39386178b
commit
cd5924562f
1 file changed
+1
-1
+1
-1
@@ -40,7 +40,7 @@ def get_subreddit_threads():
|
||||
# ! Prompt the user to enter a subreddit
|
||||
try:
|
||||
subreddit = reddit.subreddit(
|
||||
input("What subreddit would you like to pull from? ")
|
||||
re.sub(r"r\/", "", input("What subreddit would you like to pull from? "))
|
||||
)
|
||||
except ValueError:
|
||||
subreddit = reddit.subreddit("askreddit")
|
||||
|
||||
Reference in new issue
Block a user