aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-06-28 19:26:18 +0200
committerGuido Günther <agx@sigxcpu.org>2017-06-28 19:26:18 +0200
commitcc4f2ae7b14cffc3ef7cae7d2e7c020264f577eb (patch)
tree5627015009972940bd1f864d31c384a6665d5f06
parentcd9a038660f402cb974fead8678739abb676f2bd (diff)
pristine_tar: catch GitRepositoryError as well
so we get a proper error message when pristine-tar is not installed.
-rw-r--r--gbp/scripts/pristine_tar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/scripts/pristine_tar.py b/gbp/scripts/pristine_tar.py
index 909d241..41921a0 100644
--- a/gbp/scripts/pristine_tar.py
+++ b/gbp/scripts/pristine_tar.py
@@ -100,7 +100,7 @@ def main(argv):
repo.create_pristinetar_commits(upstream_tag,
tarball,
component_tarballs)
- except (GbpError, CommandExecFailed) as err:
+ except (GitRepositoryError, GbpError, CommandExecFailed) as err:
if str(err):
gbp.log.err(err)
ret = 1