Skip to content

Commit 2df946c

Browse files
committed
.get
1 parent f0cc754 commit 2df946c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sizebot/lib/userdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def fromJSON(cls, jsondata: dict[str, Any]) -> User:
372372
userdata.allowchangefromothers = cast(bool | None, jsondata["allowchangefromothers"])
373373
userdata.minimum_limit = optional_parse(SV, jsondata["minimum_limit"])
374374
userdata.maximum_limit = optional_parse(SV, jsondata["maximum_limit"])
375-
userdata.allow_matching = jsondata["allow_matching"]
375+
userdata.allow_matching = jsondata.get("allow_matching", True)
376376
return userdata
377377

378378
def __lt__(self, other: User) -> bool:

0 commit comments

Comments
 (0)