This commit is contained in:
2025-02-21 14:11:39 -05:00
parent 7c66ce7b35
commit 5d4335f92d
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,4 @@
import logging
import time
from typing import Optional
from fastapi import FastAPI
@ -85,6 +86,8 @@ class Misc(FastAPI):
"""
found_counts: Optional[dict] = await self.redis_cache.get_found_counts()
if not isinstance(found_counts, dict):
logging.info("DEBUG: Type of found counts from redis: %s\nContents: %s",
type(found_counts), found_counts)
return JSONResponse(status_code=500, content={
'err': True,
'errorText': 'General failure.',