#!/usr/bin/env python3
-# Copyright (C) 2007-2016 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
# open input file
try:
infile = open(input_file, 'rb')
- except:
+ except Exception:
sys.exit("File %s is not found" % input_file)
pass
# open output file
try:
outfile = open(output_file, 'wb')
- except:
+ except Exception:
sys.exit("File %s cannot be opened for write" % output_file)
pass