mirror of
https://github.com/isjerryxiao/pacroller.git
synced 2024-11-25 09:10:41 +08:00
catch failed to synchronize databases error
This commit is contained in:
parent
b086e950c0
commit
8e5ee014d1
1 changed files with 2 additions and 1 deletions
|
@ -278,7 +278,8 @@ def _log_parser(log: List[str], report: checkReport) -> None:
|
||||||
def sync_err_is_net(output: str) -> bool:
|
def sync_err_is_net(output: str) -> bool:
|
||||||
''' check if a sync failure is caused by network '''
|
''' check if a sync failure is caused by network '''
|
||||||
output = output.strip().split('\n')
|
output = output.strip().split('\n')
|
||||||
if 'error: failed to synchronize all databases (download library error)' in output:
|
if 'error: failed to synchronize all databases (download library error)' in output \
|
||||||
|
or 'error: failed to synchronize all databases (unexpected error)' in output:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue