1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 01:38:21 +08:00

Opt: [ALAS] handle first screenshot in loop()

This commit is contained in:
LmeSzinc
2025-10-22 01:11:33 +08:00
parent d12bd1598e
commit 01b3dc2369

View File

@@ -146,7 +146,11 @@ class ModuleBase:
skip_first = False
else:
self.device.screenshot()
yield self.device.image
try:
yield self.device.image
except AttributeError:
self.device.screenshot()
yield self.device.image
def loop_hierarchy(self, skip_first=True):
"""