Skip to content

Commit

Permalink
🐛修复无法离婚
Browse files Browse the repository at this point in the history
  • Loading branch information
wling-art committed Jan 7, 2024
1 parent c5f61ea commit 10bea23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/waifu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ async def _(event: GroupMessageEvent):
waifu_id = rec.affect[str(user_id)]
rec.affect.pop(str(user_id))
rec.affect.pop(str(waifu_id))
waifu_set.waifu.remove(waifu_id)
with contextlib.suppress(Exception):
waifu_set.waifu.remove(waifu_id)
waifu_set.waifu.remove(user_id)
record_lock, _ = await WaifuLock.get_or_create(group_id=group_id)
if group_id in record_lock.lock:
Expand Down

0 comments on commit 10bea23

Please sign in to comment.