1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 23:18:22 +08:00

Fix: Deleting a cached property will calculate it

This commit is contained in:
LmeSzinc
2022-03-05 02:40:27 +08:00
parent 9f66e4b103
commit bf87a69c17
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ def del_cached_property(obj, name):
obj:
name (str):
"""
if hasattr(obj, name):
if 'attr' in obj.__dict__:
del obj.__dict__[name]