mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
added try-exception for crowd_latest
This commit is contained in:
@@ -44,7 +44,10 @@ def test_completed_lockfile(host):
|
||||
|
||||
def get_version(url):
|
||||
if url.lower().startswith('http'):
|
||||
upstream_req = urllib.request.Request(url)
|
||||
try:
|
||||
upstream_req = urllib.request.Request(url)
|
||||
except:
|
||||
return None
|
||||
else:
|
||||
raise ValueError from None
|
||||
with urllib.request.urlopen(upstream_req) as upstream_response:
|
||||
|
||||
Reference in New Issue
Block a user