cleanup/rm
This commit is contained in:
@ -1,7 +1,4 @@
|
||||
#!/usr/bin/env python3.12
|
||||
|
||||
import time
|
||||
import logging
|
||||
from typing import Optional
|
||||
from fastapi import FastAPI
|
||||
from fastapi.responses import JSONResponse
|
||||
@ -86,7 +83,7 @@ class Misc(FastAPI):
|
||||
"""
|
||||
Homepage Lyrics Widget Handler
|
||||
"""
|
||||
found_counts: dict = await self.redis_cache.get_found_counts()
|
||||
found_counts: Optional[dict] = await self.redis_cache.get_found_counts()
|
||||
if not isinstance(found_counts, dict):
|
||||
return JSONResponse(status_code=500, content={
|
||||
'err': True,
|
||||
|
Reference in New Issue
Block a user