mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 08:37:42 +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)
|
self._obtain_enter(entry, appear_button=COMBAT_PREPARE)
|
||||||
item = self._obtain_parse()
|
item = self._obtain_parse()
|
||||||
if item.item == KEYWORDS_ITEM_CURRENCY.Trailblaze_EXP:
|
if item is not None:
|
||||||
logger.warning('Trailblaze_EXP is in obtain list, OBTAIN_TRAILBLAZE_EXP may need to verify')
|
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
|
||||||
|
else:
|
||||||
|
items.append(item)
|
||||||
|
index += 1
|
||||||
|
prev = item
|
||||||
|
else:
|
||||||
index += 1
|
index += 1
|
||||||
prev = item
|
|
||||||
elif item is not None:
|
|
||||||
items.append(item)
|
|
||||||
index += 1
|
|
||||||
prev = item
|
|
||||||
self._obtain_close(check_button=MAY_OBTAIN)
|
self._obtain_close(check_button=MAY_OBTAIN)
|
||||||
|
|
||||||
logger.hr('Obtained Result')
|
logger.hr('Obtained Result')
|
||||||
|
Loading…
Reference in New Issue
Block a user