diff --git a/scripts/mk_genfile_common.py b/scripts/mk_genfile_common.py index cc2550e44..c42eaf86d 100644 --- a/scripts/mk_genfile_common.py +++ b/scripts/mk_genfile_common.py @@ -718,7 +718,7 @@ def mk_install_tactic_cpp_internal(h_files_full_path, path): _logger.error("Failed processing ADD_PROBE command at '{}'\n{}".format( fullname, line)) raise e - except e: + except Exception as e: _loggeer.error("Failed to read file {}\n".format(h_file)) raise e # First pass will just generate the tactic factories