mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-13 15:12:14 +00:00
fix: handle first screenshot in loop()
This commit is contained in:
+5
-1
@@ -91,7 +91,11 @@ class ModuleBase:
|
|||||||
skip_first = False
|
skip_first = False
|
||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
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):
|
def loop_hierarchy(self, skip_first=True):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user