Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import praw
- r = praw.Reddit('Testing stuff for /r/LearnPython')
- for submission in r.get_subreddit('learnpython').get_new(limit=10):
- print (submission.url)
- ------------------------------------------------------------------
- R E S U L T I N T E R M I N A L
- kaliope:~/workspace $ python3 ex50/bin/app.py
- Traceback (most recent call last):
- File "/usr/lib/python3.4/configparser.py", line 824, in items
- d.update(self._sections[section])
- KeyError: 'Testing stuff for /r/LearnPython'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "ex50/bin/app.py", line 2, in <module>
- r = praw.Reddit('Testing stuff for /r/LearnPython')
- File "/usr/local/lib/python3.4/dist-packages/praw/reddit.py", line 103, in __init__
- **config_settings)
- File "/usr/local/lib/python3.4/dist-packages/praw/config.py", line 66, in __init__
- self.custom = dict(Config.CONFIG.items(site_name), **settings)
- File "/usr/lib/python3.4/configparser.py", line 827, in items
- raise NoSectionError(section)
- configparser.NoSectionError: No section: 'Testing stuff for /r/LearnPython'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement