mirror of
https://github.com/isjerryxiao/pacroller.git
synced 2024-11-22 07:40:43 +08:00
sync_err_is_net is not picking up all errors
This commit is contained in:
parent
c2d2cc68cf
commit
af92a1bd97
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ def _log_parser(log: List[str], report: checkReport) -> None:
|
|||
def sync_err_is_net(output: str) -> bool:
|
||||
''' check if a sync failure is caused by network '''
|
||||
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
|
||||
else:
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue