-# 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
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: