Skip to content

Commit

Permalink
Fixed logic for read-only intel dir. (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaan authored Jan 16, 2025
1 parent efcbd7f commit 6861956
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6861956

Please sign in to comment.