From f8877e51576feb33a663978b516a0cc35579f018 Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Thu, 27 May 2021 16:52:01 -0400 Subject: [PATCH] Skip non-existant files during version update for hardcoded exceptions (#21905) --- eng/versioning/update_versions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/versioning/update_versions.py b/eng/versioning/update_versions.py index f5fb1e9b63b73..e7d01a5f9cb2b 100644 --- a/eng/versioning/update_versions.py +++ b/eng/versioning/update_versions.py @@ -252,7 +252,8 @@ def update_versions_all(update_type, build_type, target_file, skip_readme, auto_ if os.path.isfile(java_file_to_update): update_versions(update_type, version_map, ext_dep_map, java_file_to_update, skip_readme, auto_version_increment) else: - raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), java_file_to_update) + # In pipeline contexts, files not local to the current SDK directory may not be checked out from git. + print(java_file_to_update + ' does not exist. Skipping') else: print(version_java_file + ' does not exist. Skipping.') # END:Versions_in_java_files