summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pbr/d2to1/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbr/d2to1/util.py b/pbr/d2to1/util.py
index ab38d66..8ffd806 100644
--- a/pbr/d2to1/util.py
+++ b/pbr/d2to1/util.py
@@ -180,6 +180,8 @@ def cfg_to_args(path='setup.cfg'):
hook_fn = resolve_name(hook)
try :
hook_fn(config)
+ except SystemExit:
+ log.error('setup hook %s terminated the installation')
except:
e = sys.exc_info()[1]
log.error('setup hook %s raised exception: %s\n' %