Skip to content

Commit 90e47f4

Browse files
committed
fix: neutralize catalog table title, handle non-dict cache metadata
1 parent 1ccc313 commit 90e47f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/specify_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ def integration_list(
18061806
console.print("[yellow]No integrations found in catalog.[/yellow]")
18071807
return
18081808

1809-
table = Table(title="Integration Catalog (built-in + community)")
1809+
table = Table(title="Integration Catalog")
18101810
table.add_column("ID", style="cyan")
18111811
table.add_column("Name")
18121812
table.add_column("Version")

src/specify_cli/integrations/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def _fetch_single_catalog(
247247
age = (datetime.now(timezone.utc) - cached_at).total_seconds()
248248
if age < self.CACHE_DURATION:
249249
return json.loads(cache_file.read_text(encoding="utf-8"))
250-
except (json.JSONDecodeError, ValueError, KeyError, TypeError):
250+
except (json.JSONDecodeError, ValueError, KeyError, TypeError, AttributeError):
251251
# Cache is invalid or stale metadata; delete and refetch from source.
252252
try:
253253
cache_file.unlink(missing_ok=True)

0 commit comments

Comments
 (0)