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

Fix: Raise exception in case name does not belong anywhere

indicating malformed timing of screen capture for OCR
This commit is contained in:
nEEtdo0d
2021-01-11 13:52:43 -05:00
parent 0bd80078b5
commit 845c9d5e67
4 changed files with 8 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ class CampaignOcr(ModuleBase):
return 1
elif name in ['b', 'd', 'ex_ex']:
return 2
else:
raise CampaignNameError
@staticmethod
def _campaign_ocr_result_process(result):