Skip to content

Commit 79df83e

Browse files
authored
Handle missing wordclass (#2)
1 parent 355c5c9 commit 79df83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pons/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Rom:
6565
def __init__(self, data: Dict[str, Any]) -> None:
6666
self.headword = data["headword"]
6767
self.headword_full = data["headword_full"]
68-
self.wordclass = data["wordclass"]
68+
self.wordclass = data.get("wordclass", None)
6969
self.arabs = [Arab(arab) for arab in data["arabs"]]
7070

7171
def __repr__(self) -> str:

0 commit comments

Comments
 (0)