Salome HOME
updated copyright message
[modules/shaper.git] / src / PythonAPI / model / parameter / import_parameter.py
index 3b2a25c069cd7d844bf9ed9ee420a2de6ac3de67..5a1fd37424c05cccd1148e0e6017de0b175b2cfc 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2021  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -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: