summaryrefslogtreecommitdiff
path: root/util/style.py
diff options
context:
space:
mode:
Diffstat (limited to 'util/style.py')
-rw-r--r--util/style.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/util/style.py b/util/style.py
index a039cb432..1018e813c 100644
--- a/util/style.py
+++ b/util/style.py
@@ -341,12 +341,24 @@ def check_hook(hooktype):
def check_style(ui, repo, hooktype, **kwargs):
check_hook(hooktype)
args = {}
- return do_check_style(ui, repo, **args)
+
+ try:
+ return do_check_style(ui, repo, **args)
+ except Exception, e:
+ import traceback
+ traceback.print_exc()
+ return True
def check_format(ui, repo, hooktype, **kwargs):
check_hook(hooktype)
args = {}
- return do_check_format(ui, repo, **args)
+
+ try:
+ return do_check_format(ui, repo, **args)
+ except Exception, e:
+ import traceback
+ traceback.print_exc()
+ return True
try:
from mercurial.i18n import _