KeyError: 'created' return meta['created']
See original GitHub issueHi I am using elasticsearch-dsl-py
in my project with the version 5.4.0
. I got key error
in document.py line 437
for there is no key in meta. I saw it has been updated in master branch to be code return meta["result"] == "created"
.
So when can I got the next release version.
Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:13
- Comments:5 (1 by maintainers)
Top Results From Across the Web
KeyError getting metadata from video file - python
According to the source code, ffmpeg.probe returns a dictionary loaded from JSON. So, you don't need to take out the first item and...
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 >How to Fix KeyError in Pandas (With Example) - Statology
KeyError : 'column_name'. This error occurs when you attempt to access some column in a pandas DataFrame that does not exist.
Read more >How to Fix: KeyError in Pandas - GeeksforGeeks
Pandas KeyError occurs when we try to access some column/row label in our DataFrame that doesn't exist. Usually, this error occurs when you ......
Read more >keyerror in Python – How to Fix Dictionary Error
The two methods we'll talk about for fixing the KeyError exception in Python are: The in keyword. The try except block. Let's get...
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
Currently I inherited the class
DocType
and override the methodssave
to and change the last line to bereturn meta.get('result', '') == 'created'
I have version
6.2.1
and I’m still facing this problem!