From 14dc0275924b3a9f36d990c5065d413ed0b3f655 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 23 Mar 2022 18:04:20 +0200 Subject: [PATCH] fd --- files/routes/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 708c8188b..7198819cf 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -14,7 +14,7 @@ if "load_chat" in sys.argv: socketio = SocketIO(app, async_mode='gevent', cors_allowed_origins=[SITE_FULL]) typing = [] online = [] - messages = cache.get('chat') + messages = cache.get('chat') or [] @app.get("/chat") @auth_required