From 686195681ee9c269e36728d248f48f7b181c92b4 Mon Sep 17 00:00:00 2001 From: Anastasiia Pnevskaia Date: Thu, 16 Jan 2025 13:51:16 +0100 Subject: [PATCH] Fixed logic for read-only intel dir. (#64) --- src/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index dfb757b..c7fca3d 100644 --- a/src/main.py +++ b/src/main.py @@ -78,7 +78,9 @@ def init(self, app_name: str = None, app_version: str = None, tid: str = None, self.backend.generate_new_cid_file() if self.consent: - self.backend.set_stats(self.get_stats()) + data = self.get_stats() + if data is not None and isinstance(data, dict): + self.backend.set_stats(data) if not enable_opt_in_dialog and self.consent: # Try to create directory for client ID if it does not exist