diff --git a/src/pacroller/checker.py b/src/pacroller/checker.py index f71c171..14fa89f 100644 --- a/src/pacroller/checker.py +++ b/src/pacroller/checker.py @@ -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