Skip to content

Commit

Permalink
Check if prefs file exists before opening
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Dec 7, 2023
1 parent 8a35613 commit 30335bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/io_hubs_addon/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30335bc

Please sign in to comment.