Skip to content

Prevent KeyError when accessing HTML tree (Issue #90) #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 28, 2017

Conversation

adamheinrich
Copy link
Contributor

Access to element['attr'] fails with KeyError when the 'attr' attribute is omitted in the actual HTML tree. Method element.get('attr') is now used to prevent the error from happening.

This fixes Issue #90.

Access to element['attr'] fails with KeyError when the 'attr' attribute is
omitted in the actual HTML tree. Method element.get('attr') is now used to
prevent the error from happening.

Signed-off-by: Adam Heinrich <adam@adamh.cz>
@adamheinrich adamheinrich changed the title Prevent KeyError when accessing HTML tree Prevent KeyError when accessing HTML tree (Issue #90) Oct 13, 2017
@xesscorp xesscorp merged commit e7634eb into hildogjr:master Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants