From 98c421c2e38d34ea3087f984f162db0ff84bc411 Mon Sep 17 00:00:00 2001
From: Mathieu Courtois <mathieu.courtois@edf.fr>
Date: Tue, 7 Nov 2023 18:09:02 +0100
Subject: [PATCH] [#31665] fix default value for errors checkings

---
 lib/hgaster/hooks/generic.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/hgaster/hooks/generic.py b/lib/hgaster/hooks/generic.py
index 873b42e..96f7feb 100644
--- a/lib/hgaster/hooks/generic.py
+++ b/lib/hgaster/hooks/generic.py
@@ -21,7 +21,7 @@ OK, NOOK = 0, 1
 
 def on_error():
     """Tell if it must fail on error or pass silently"""
-    if ASCFG.get("check-commit") != "error":
+    if ASCFG.get("check-commit", "error") != "error":
         return OK
     return NOOK
 
-- 
GitLab