X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=salome_adm%2Fprepare_generating_doc.py;h=8a6073a377cd188dc180b914d6ecf94472afaa9b;hb=20c132438f5b8f7337bf35272989b10eb003d71c;hp=bb0ce7fd55fb3d7f2cc4ca71750c9c06a3280bdb;hpb=85eb31dcb591c2535c0b0d68c3525f7423888954;p=modules%2Fkernel.git diff --git a/salome_adm/prepare_generating_doc.py b/salome_adm/prepare_generating_doc.py index bb0ce7fd5..8a6073a37 100755 --- a/salome_adm/prepare_generating_doc.py +++ b/salome_adm/prepare_generating_doc.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright (C) 2007-2019 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