Skip to content

Commit

Permalink
Skip non-existant files during version update for hardcoded exceptions (
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp authored and zihzhan-msft committed May 28, 2021
1 parent 83cdca2 commit f8877e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eng/versioning/update_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8877e5

Please sign in to comment.