From 30335bca87bca7108411601bf614c6327f1c19f5 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Thu, 7 Dec 2023 13:18:18 +0100 Subject: [PATCH] Check if prefs file exists before opening --- addons/io_hubs_addon/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/io_hubs_addon/utils.py b/addons/io_hubs_addon/utils.py index a697f048..fe488650 100644 --- a/addons/io_hubs_addon/utils.py +++ b/addons/io_hubs_addon/utils.py @@ -111,6 +111,10 @@ def load_prefs(context): data = {} out_path = get_prefs_path() + import os + if not os.path.isfile(out_path): + return + try: import json import os