Phase 8: Add error handling polish

- Dry-run continues even without API access
- Shows planned operations from metadata alone
- Better health check handling for offline testing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-01-19 22:46:58 +01:00
parent a20566401a
commit 4690c8f9bd

View File

@@ -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()