From 737fb6417b6b792115a4e4307d91543b650945d4 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Thu, 25 Jan 2024 23:48:09 +0530 Subject: [PATCH] Revert none checking in telemetry logs --- src/khoj/routers/helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/khoj/routers/helpers.py b/src/khoj/routers/helpers.py index ffe2fcd5..ee51a8a6 100644 --- a/src/khoj/routers/helpers.py +++ b/src/khoj/routers/helpers.py @@ -86,9 +86,9 @@ def update_telemetry_state( "user_agent": user_agent or "unknown", "referer": referer or "unknown", "host": host or "unknown", - "server_id": str(user.uuid), - "subscription_type": subscription.type, - "is_recurring": subscription.is_recurring, + "server_id": str(user.uuid) if user else None, + "subscription_type": subscription.type if subscription else None, + "is_recurring": subscription.is_recurring if subscription else None, "client_id": str(client_app.name) if client_app else "default", }