Fix crash in get_latest_tag due to missing tuple

This commit is contained in:
rubenwardy 2021-01-31 11:24:04 +00:00
parent 4364ce5d6f
commit f07f2803f8
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ def get_latest_tag(git_url):
refs = repo.git.ls_remote(tags=True, sort="creatordate").split('\n')
refs = [ref for ref in refs if ref.strip() != ""]
if len(refs) == 0:
return None
return None, None
last_ref = refs[-1]
hash_ref_list = last_ref.split('\t')