1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-23 21:25:57 +08:00

Merge pull request #1519 from Horizon101011/serverChecker

Opt: Remove ScriptError when timestamp expired
This commit is contained in:
LmeSzinc
2022-08-14 21:19:57 +08:00
committed by GitHub

View File

@@ -68,8 +68,7 @@ class ServerChecker:
else: else:
self._expired += 1 self._expired += 1
if self._expired > 3: if self._expired > 3:
logger.info(f'Last update timestamp = {self._timestamp}') logger.warning(f'Timestamp {self._timestamp} has not been updated for 3 times.')
raise ScriptError('Timestamp has not been updated for 3 times.')
elif resp.status_code == 404: elif resp.status_code == 404:
self._state.append(False) self._state.append(False)
raise ScriptError(f'Server "{self._server}" does not exist!') raise ScriptError(f'Server "{self._server}" does not exist!')