From: azv Date: Tue, 19 Jul 2022 15:47:53 +0000 (+0300) Subject: #54775: No error when load file with parameters X-Git-Tag: V9_9_1b1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4d9c9b53936a9235a30588d1811d91efef81e1f2;p=modules%2Fshaper.git #54775: No error when load file with parameters --- 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: