We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 355c5c9 commit 79df83eCopy full SHA for 79df83e
pons/models.py
@@ -65,7 +65,7 @@ class Rom:
65
def __init__(self, data: Dict[str, Any]) -> None:
66
self.headword = data["headword"]
67
self.headword_full = data["headword_full"]
68
- self.wordclass = data["wordclass"]
+ self.wordclass = data.get("wordclass", None)
69
self.arabs = [Arab(arab) for arab in data["arabs"]]
70
71
def __repr__(self) -> str:
0 commit comments