diff --git a/outline_import.py b/outline_import.py index ea92860..5959379 100644 --- a/outline_import.py +++ b/outline_import.py @@ -690,15 +690,21 @@ class OutlineImporter: print("[DRY RUN] No changes will be made") print() - # Health check - if not self.health_check(): - logger.error("Import aborted due to failed health check") - return + # Health check (skip in dry-run mode if it fails) + health_ok = self.health_check() + if not health_ok: + if self.dry_run: + print(" (continuing in dry-run mode without API)") + print() + else: + logger.error("Import aborted due to failed health check") + return + else: + print() - print() - - # Get existing collections - self._get_collections() + # Get existing collections (skip in dry-run if health check failed) + if health_ok: + self._get_collections() # Get source collections source_collections = self.get_source_collections()