warning in case git version is not found
This commit is contained in:
@@ -50,7 +50,8 @@ class Config:
|
|||||||
except GitCommandError:
|
except GitCommandError:
|
||||||
version = repo.head.commit.hexsha[:7] # If no tag is found, use the simplified commit SHA instead
|
version = repo.head.commit.hexsha[:7] # If no tag is found, use the simplified commit SHA instead
|
||||||
return version
|
return version
|
||||||
except Exception:
|
except Exception as e:
|
||||||
|
print_with_c_locale(f'Warning: unable to retrieve Shake&Tune version number: {e}')
|
||||||
return 'unknown'
|
return 'unknown'
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user