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

Fix: Subtracting None in NavBar.get_total()

This commit is contained in:
LmeSzinc
2022-12-15 01:52:07 +08:00
parent b37666416c
commit 98c2e980d5

View File

@@ -85,6 +85,8 @@ class Navbar:
int: Numbers of nav items that appears
"""
_, left, right = self.get_info(main=main)
if left is None or right is None:
return 0
return right - left + 1
def _shop_obstruct_handle(self, main):