sync_err_is_net is not picking up all errors

This commit is contained in:
JerryXiao 2021-02-16 10:29:31 +08:00
parent c2d2cc68cf
commit af92a1bd97
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -266,7 +266,7 @@ 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 output[-1] == 'error: failed to synchronize all databases': if 'error: failed to synchronize all databases' in output:
return True return True
else: else:
return False return False