Skip to content

Keep getting error message "KeyError: 'name'" #241

Discussion options

You must be logged in to vote

You have a typo in your example from the opening question. In the third entry of the KeckTang_questions list, you wrote "Name" instead of "name".

If you want to debug something like this, it can be very helpful to print of some intermediate information. In the code above, you could add print(item) to the for-loop. That way you could directly see, which entry of your list causes the problem.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@slussinator
Comment options

@jobrachem
Comment options

@slussinator
Comment options

@jobrachem
Comment options

Answer selected by slussinator
@slussinator
Comment options

@jobrachem
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants