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

Opt: Show empty screenshots

This commit is contained in:
LmeSzinc
2022-01-05 20:34:57 +08:00
parent 394bc195af
commit 26cee178a9

View File

@@ -46,6 +46,8 @@ class Screenshot(AScreenCap):
continue
self._screenshot_method_fixed = self._screenshot_method
if len(screenshot) < 100:
logger.warning(f'Unexpected screenshot: {screenshot}')
raise OSError(f'cannot load screenshot')
def _screenshot_adb(self):