mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-13 11:52:45 +02:00
has no attribute 'decode' fix for redis db
This will only try to decode if it is needed
This commit is contained in:
parent
4393132d1c
commit
2d05f20fab
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue