From 385ee01d34ab1c5563478bce2ac1bc5de8651c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Mon, 15 Apr 2024 15:13:40 +0200 Subject: [PATCH] warning in case git version is not found --- src/is_workflow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/is_workflow.py b/src/is_workflow.py index d30685a..80ae57a 100755 --- a/src/is_workflow.py +++ b/src/is_workflow.py @@ -50,7 +50,8 @@ class Config: except GitCommandError: version = repo.head.commit.hexsha[:7] # If no tag is found, use the simplified commit SHA instead return version - except Exception: + except Exception as e: + print_with_c_locale(f'Warning: unable to retrieve Shake&Tune version number: {e}') return 'unknown' @staticmethod