Skip to content

Commit 98e72ca

Browse files
authored
Fix lts_compatibility: Handle unfindable packages from old (unsupported) platforms (#7012)
1 parent 7b3b940 commit 98e72ca

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/infra/github.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,14 @@ def __init__(self):
188188
]
189189

190190
def has_release_for_tag_name(self, tag_name):
191+
try:
192+
package_url = get_package_url_from_tag_name(tag_name)
193+
except ValueError:
194+
return False
195+
191196
return (
192197
requests.head(
193-
get_package_url_from_tag_name(tag_name),
198+
package_url,
194199
allow_redirects=True,
195200
timeout=30,
196201
).status_code

0 commit comments

Comments
 (0)