diff options
author | Menghan Li <menghanl@google.com> | 2017-12-12 17:46:21 -0800 |
---|---|---|
committer | Menghan Li <menghanl@google.com> | 2017-12-12 17:46:57 -0800 |
commit | caada990c7f523b7dae204ff6f8a928df3c0e9ab (patch) | |
tree | 7d3942d7145ec3166e9b8cbe7bc1127c09eac45d /tools | |
parent | 438f219701a0d4e41060142a5a5db0d828eeeb3f (diff) |
Fix interop_matrix/create_matrix_images.py None error
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/interop_matrix/create_matrix_images.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/interop_matrix/create_matrix_images.py b/tools/interop_matrix/create_matrix_images.py index 67dfce9c9a..ad7bb59331 100755 --- a/tools/interop_matrix/create_matrix_images.py +++ b/tools/interop_matrix/create_matrix_images.py @@ -254,8 +254,9 @@ def maybe_apply_patches_on_git_tag(stack_base, lang, release): files_to_patch = [] for release_info in client_matrix.LANG_RELEASE_MATRIX[lang]: if client_matrix.get_release_tag_name(release_info) == release: - files_to_patch = release_info[release].get('patch') - break + if release_info[release] is not None: + files_to_patch = release_info[release].get('patch') + break if not files_to_patch: return patch_file_relative_path = 'patches/%s_%s/git_repo.patch' % (lang, release) |