From 2d396bb7ad506ab1fc59467142f28fb250af42ad Mon Sep 17 00:00:00 2001
From: Remi Cresson <remi.cresson@irstea.fr>
Date: Wed, 1 Jun 2022 20:58:05 +0200
Subject: [PATCH] FIX: get hash

---
 decloud/core/system.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/decloud/core/system.py b/decloud/core/system.py
index 7101a65..17da552 100644
--- a/decloud/core/system.py
+++ b/decloud/core/system.py
@@ -46,7 +46,7 @@ def get_commit_hash():
     except TypeError:
         try:
             commit_hash = 'DETACHED_' + repo.head.object.hexsha[0:5]
-        except TypeError:
+        except ValueError:
             commit_hash = 'NoHash'
 
     return commit_hash
-- 
GitLab