KeyError: u'data' in SubmitMixin
See original GitHub issuedjc@enrai pmf $ python bot.py
retrieving feed items...
retrieving reddit items (MozillaTech)...
Traceback (most recent call last):
File "bot.py", line 59, in <module>
res = submit(api, r, title, link)
File "bot.py", line 47, in submit
return api.submit(r, title, url=link)
File "<string>", line 2, in submit
File "/usr/lib64/python2.7/site-packages/praw/decorators.py", line 271, in wrap
return function(*args, **kwargs)
File "<string>", line 2, in submit
File "/usr/lib64/python2.7/site-packages/praw/decorators.py", line 177, in require_captcha
return function(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/praw/__init__.py", line 2678, in submit
url = result['data']['url']
KeyError: u'data'
This has started happening this week. The result value seems to be {u'errors': []}
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:19 (9 by maintainers)
Top Results From Across the Web
KeyError when I want to increase object and put him to dict
I have userId and I add 1 in the loop, but I recived an error: KeyError: 100 todos = {} data = [...
Read more >Python KeyError Exceptions and How to Handle Them
In this tutorial, you'll learn how to handle Python KeyError exceptions. They are often caused by a bad key lookup in a dictionary,...
Read more >What is the Python keyerror? - Educative.io
The keyerror occurs when the key used for a lookup does not exist in the mapping. Consider a phone book that is represented...
Read more >How to Fix KeyError Exceptions in Python - Rollbar
The Python KeyError is an exception that occurs when an attempt is made to access an item in a dictionary that does not...
Read more >keyerror in Python – How to Fix Dictionary Error
When working with dictionaries in Python, a KeyError gets raised when you try to access an item that doesn't exist in a Python...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FWIW, it does look like the link my script is trying to submit is already there.
Thanks @birakattack!