Draft: LGTM - don't catch BaseException

This commit is contained in:
Chris Hennes
2021-09-19 14:36:38 -05:00
parent 84e86793f0
commit 68a027cf94
5 changed files with 6 additions and 6 deletions

View File

@@ -297,7 +297,7 @@ class Draft_SetStyle_TaskPanel:
try:
import json
from json.decoder import JSONDecodeError
except:
except Exception:
return
if os.path.exists(PRESETPATH):
with open(PRESETPATH,"r") as f:
@@ -313,7 +313,7 @@ class Draft_SetStyle_TaskPanel:
try:
import json
except:
except Exception:
FreeCAD.Console.PrintError(translate("Draft","Error: json module not found. Unable to save style")+"\n")
return
folder = os.path.dirname(PRESETPATH)