mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 00:35:34 +00:00
Fix: Handle None from _obtain_parse()
This commit is contained in:
parent
9fd1d76392
commit
87023c77e6
@ -228,14 +228,17 @@ class CombatObtain(PlannerMixin):
|
||||
|
||||
self._obtain_enter(entry, appear_button=COMBAT_PREPARE)
|
||||
item = self._obtain_parse()
|
||||
if item is not None:
|
||||
if item.item == KEYWORDS_ITEM_CURRENCY.Trailblaze_EXP:
|
||||
logger.warning('Trailblaze_EXP is in obtain list, OBTAIN_TRAILBLAZE_EXP may need to verify')
|
||||
index += 1
|
||||
prev = item
|
||||
elif item is not None:
|
||||
else:
|
||||
items.append(item)
|
||||
index += 1
|
||||
prev = item
|
||||
else:
|
||||
index += 1
|
||||
self._obtain_close(check_button=MAY_OBTAIN)
|
||||
|
||||
logger.hr('Obtained Result')
|
||||
|
Loading…
Reference in New Issue
Block a user