You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing an AttributeError when running on python3.6 or 3.7 currently:
Traceback (most recent call last):
File "newsbot.py", line 24, in <module>
handle_incoming_messages(States.last_updated)
File "/Users/spencer.anderson/testing/pythonshenanigans/tgramred/docker_subred_fetch/telegram.py", line 85, in handle_incoming_messages
summarized_news = get_latest_news(sources_dict[person_id])
File "/Users/spencer.anderson/testing/pythonshenanigans/tgramred/docker_subred_fetch/reddit.py", line 29, in get_latest_news
submissions = r.get_subreddit(sub_reddits).get_top(limit=5)
AttributeError: 'Reddit' object has no attribute 'get_subreddit'
I made the call this, however this will likely only work with 1 subreddit and not multiple. submissions = r.subreddit(sub_reddits).top(limit=5)
It was submissions = r.get_subreddit(sub_reddits).get_top(limit=5)
The text was updated successfully, but these errors were encountered:
Thanks for reporting. The r.subreddit(sub_reddits).top(limit=5) will work with multiple subreddits as well. This was a result of praw version upgrade which was corrected in later exercises but not this one.
I'm seeing an AttributeError when running on python3.6 or 3.7 currently:
I made the call this, however this will likely only work with 1 subreddit and not multiple.
submissions = r.subreddit(sub_reddits).top(limit=5)
It was
submissions = r.get_subreddit(sub_reddits).get_top(limit=5)
The text was updated successfully, but these errors were encountered: