auth-check-middleware
Some checks failed
deploy / deploy (push) Failing after 1m6s

This commit is contained in:
2023-12-17 14:42:04 +03:00
parent f061d8a523
commit 01d7935cbd
6 changed files with 49 additions and 16 deletions

View File

@@ -55,9 +55,9 @@ class RedisCache:
while True:
message = await pubsub.get_message()
if message and isinstance(message['data'], (str, bytes, bytearray)):
if message and isinstance(message["data"], (str, bytes, bytearray)):
try:
yield json.loads(message['data'])
yield json.loads(message["data"])
except json.JSONDecodeError as e:
print(f"Error decoding JSON: {e}")
await asyncio.sleep(0.1)