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:
@@ -690,15 +690,21 @@ 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()
|
||||||
logger.error("Import aborted due to failed health check")
|
if not health_ok:
|
||||||
return
|
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 (skip in dry-run if health check failed)
|
||||||
|
if health_ok:
|
||||||
# Get existing collections
|
self._get_collections()
|
||||||
self._get_collections()
|
|
||||||
|
|
||||||
# Get source collections
|
# Get source collections
|
||||||
source_collections = self.get_source_collections()
|
source_collections = self.get_source_collections()
|
||||||
|
|||||||
Reference in New Issue
Block a user