warning in case git version is not found

This commit is contained in:
Félix Boisselier committed 2024-04-15 15:13:40 +02:00
1 parent ab6e76ea11
commit 385ee01d34
1 file changed
+2 -1
+2 -1
View File
@@ -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