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,14 +690,20 @@ class OutlineImporter:
print("[DRY RUN] No changes will be made") print("[DRY RUN] No changes will be made")
print() print()
# Health check # Health check (skip in dry-run mode if it fails)
if not self.health_check(): 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") logger.error("Import aborted due to failed health check")
return return
else:
print() print()
# Get existing collections # Get existing collections (skip in dry-run if health check failed)
if health_ok:
self._get_collections() self._get_collections()
# Get source collections # Get source collections