From 4d9c9b53936a9235a30588d1811d91efef81e1f2 Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 19 Jul 2022 18:47:53 +0300 Subject: [PATCH] #54775: No error when load file with parameters --- src/PythonAPI/model/parameter/import_parameter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PythonAPI/model/parameter/import_parameter.py b/src/PythonAPI/model/parameter/import_parameter.py index 10f08b62e..4cd8cb191 100644 --- a/src/PythonAPI/model/parameter/import_parameter.py +++ b/src/PythonAPI/model/parameter/import_parameter.py @@ -30,7 +30,8 @@ def importParameters(theDocument, theFileName): aResult = [] try: aFile = codecs.open(theFileName, 'r', encoding = 'utf_8_sig') - except IOError: + except IOError as e: + print("Failed to read file: %s" % str(e)) return aResult for aLine in aFile: -- 2.39.2