mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 14:27:00 +08:00
Fix: Handle errors of error handling in device connection
This commit is contained in:
@@ -78,6 +78,18 @@ def handle_adb_error(e):
|
||||
return False
|
||||
|
||||
|
||||
def del_cached_property(obj, name):
|
||||
"""
|
||||
Delete a cached property safely.
|
||||
|
||||
Args:
|
||||
obj:
|
||||
name (str):
|
||||
"""
|
||||
if hasattr(obj, name):
|
||||
del obj.__dict__[name]
|
||||
|
||||
|
||||
class IniterNoMinicap(u2.init.Initer):
|
||||
@property
|
||||
def minicap_urls(self):
|
||||
|
||||
Reference in New Issue
Block a user