Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

[#100] prevent KeyError being caused crash #101

Merged
merged 1 commit into from
Aug 31, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zdict/dictionaries/yahoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def query(self, word: str):

for example in (
tag for tag in item.find_all('span')
if 'line-height: 17px;' not in tag['style']
if 'line-height: 17px;' not in tag.get('style', {})
):
sentence = ''

Expand Down