Skip to content

Commit 6861956

Browse files
authored
Fixed logic for read-only intel dir. (openvinotoolkit#64)
1 parent efcbd7f commit 6861956

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def init(self, app_name: str = None, app_version: str = None, tid: str = None,
7878
self.backend.generate_new_cid_file()
7979

8080
if self.consent:
81-
self.backend.set_stats(self.get_stats())
81+
data = self.get_stats()
82+
if data is not None and isinstance(data, dict):
83+
self.backend.set_stats(data)
8284

8385
if not enable_opt_in_dialog and self.consent:
8486
# Try to create directory for client ID if it does not exist

0 commit comments

Comments
 (0)