]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#54775: No error when load file with parameters
authorazv <azv@opencascade.com>
Tue, 19 Jul 2022 15:47:53 +0000 (18:47 +0300)
committerazv <azv@opencascade.com>
Tue, 19 Jul 2022 15:48:03 +0000 (18:48 +0300)
src/PythonAPI/model/parameter/import_parameter.py

index 10f08b62efc6ef412da57df1a441648fb1d44bd7..4cd8cb191e1041f269e42df4537c6319c8abbb32 100644 (file)
@@ -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: