From 8e5ee014d196d544213e51925061e0137e4fd8c4 Mon Sep 17 00:00:00 2001 From: Jerry Date: Sun, 19 Dec 2021 12:29:23 +0800 Subject: [PATCH] catch failed to synchronize databases error --- src/pacroller/checker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pacroller/checker.py b/src/pacroller/checker.py index e4d05bf..5215b27 100644 --- a/src/pacroller/checker.py +++ b/src/pacroller/checker.py @@ -278,7 +278,8 @@ 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 '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 else: return False