Salome HOME
updated copyright message
[modules/kernel.git] / salome_adm / prepare_generating_doc.py
index e7f07891706f4c03a317ca6620362c8c3eb95c4a..8a6073a377cd188dc180b914d6ecf94472afaa9b 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python3
-# Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -45,7 +45,7 @@ def main(input_file, output_file = None):
     # open input file
     try:
         infile = open(input_file, 'rb')
-    except:
+    except Exception:
         sys.exit("File %s is not found" % input_file)
         pass
 
@@ -54,7 +54,7 @@ def main(input_file, output_file = None):
     # open output file
     try:
         outfile = open(output_file, 'wb')
-    except:
+    except Exception:
         sys.exit("File %s cannot be opened for write" % output_file)
         pass