minor
This commit is contained in:
@ -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.',
|
||||
|
Reference in New Issue
Block a user