There was an error while loading. Please reload this page.
1 parent 21e94c7 commit 64df70eCopy full SHA for 64df70e
1 file changed
services/url_service.py
@@ -573,7 +573,7 @@ async def _populate_cache(
573
self,
574
short_code: str,
575
url_cache_data: UrlCacheData,
576
- schema: str,
+ schema: SchemaVersion,
577
) -> None:
578
"""
579
Cache the URL data according to caching rules:
@@ -600,7 +600,7 @@ async def _generate_unique_alias(self) -> str:
600
# ── Module-level helpers ──────────────────────────────────────────────────────
601
602
603
-def _raise_for_status(status: str) -> None:
+def _raise_for_status(status: UrlStatus) -> None:
604
if status == UrlStatus.BLOCKED:
605
raise BlockedUrlError("URL is blocked")
606
raise GoneError("URL has expired or is no longer active")
0 commit comments