diff --git a/svn_mirror/sync.py b/svn_mirror/sync.py index c5eaa01..84155c9 100644 --- a/svn_mirror/sync.py +++ b/svn_mirror/sync.py @@ -483,14 +483,14 @@ def run_daemon_loop(mirrors: Dict[str, Mirror]) -> None: logger.debug("Checking mirror %s…", mid) try: svn_count = sync_all(m) - if svn_count: + try: push_to_gitea(m) + except GiteaError as ge: + logger.warning("Gitea push failed for %s: %s", mid, ge) fetch_from_gitea(m) git_count = sync_git_to_svn(m) if svn_count or git_count: last_sync[mid] = now - except (GiteaError) as ge: - logger.warning("Gitea push failed for %s: %s", mid, ge) except Exception: logger.exception("Sync cycle failed for %s", mid)