Skip to content
Snippets Groups Projects
Commit 16895e15 authored by felmer's avatar felmer
Browse files

SSDM-10611: handle invalid git-annex version info

parent 6d1278d0
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,11 @@ class GitWrapper(object):
first_line = result.output.split("\n")[0].split(":")
if len(first_line) > 1:
self.annex_version = first_line[1].strip()
self.annex_major_version = int(self.annex_version.split(".")[0])
try:
self.annex_major_version = int(self.annex_version.split(".")[0])
except Exception as e:
print("Invalid git-annex version line:",result.output)
return false
return True
def git_init(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment