diff --git a/twqq/objects.py b/twqq/objects.py index 5d9cf93..49e9b0f 100644 --- a/twqq/objects.py +++ b/twqq/objects.py @@ -572,8 +572,11 @@ def update(self, data): for item in data.get("marknames", []): uin = item.get("uin") - self._uin_map[uin].set_markname(item.get("markname")) - self._mark_uin_map[item.get("markname")] = uin + try: + self._uin_map[uin].set_markname(item.get("markname")) + self._mark_uin_map[item.get("markname")] = uin + except KeyError: + pass for item in data.get("vipinfo", []): uin = item.get("u")