has no attribute 'decode' fix for redis db

This will only try to decode if it is needed
This commit is contained in:
ChuckNorrison 2022-10-18 15:55:54 +02:00 committed by fusion44
parent 4393132d1c
commit 2d05f20fab

View file

@ -65,7 +65,10 @@ async def redis_get(key: str) -> str:
logging.warning(logstr)
return ""
return v.decode("utf-8")
try:
return v.decode("utf-8")
except:
return v
# TODO