aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2023-05-26 12:35:07 +0200
committerGuido Günther <agx@sigxcpu.org>2023-05-26 12:48:02 +0200
commite358254afdd4b3426adf320447c4744aea0a0969 (patch)
tree4a21d242d96068e594837f9e6032b420d801d119
parentae802de3c30493e576fa27c2f3d182f359005283 (diff)
dch: Catch d/control parse errors too
Print a clear error message instead of hiding it in the backtrace. Thanks: Mechtilde Stehmann for the report
-rw-r--r--gbp/scripts/dch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py
index ff4fb95c..5e978b5f 100644
--- a/gbp/scripts/dch.py
+++ b/gbp/scripts/dch.py
@@ -607,7 +607,8 @@ def main(argv):
except KeyboardInterrupt:
ret = 1
gbp.log.err("Interrupted. Aborting.")
- except (gbpc.CommandExecFailed,
+ except (gbp.deb.control.ParseControlError,
+ gbpc.CommandExecFailed,
GbpError,
GitRepositoryError,
DebianSourceError,