From: David Kågedal Date: Fri, 17 Aug 2007 11:36:51 +0000 (+0200) Subject: Don't print unnecessary backtraces when testing X-Git-Tag: v0.14~124 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/fe104619b4399822c7b8818137174544e75e7903 Don't print unnecessary backtraces when testing When stg fails, and handles it properly, no backtrace should be printed, even when running tests with -v. Getting a backtrace in the output signals some kind of bug, but in this case there is no bug. Signed-off-by: Karl Hasselström --- diff --git a/stgit/main.py b/stgit/main.py index 294b703..2390110 100644 --- a/stgit/main.py +++ b/stgit/main.py @@ -286,7 +286,7 @@ def main(): StackException, GitException, GitMergeException, EditorException), err: print >> sys.stderr, '%s %s: %s' % (prog, cmd, err) - if debug_level: + if debug_level > 0: raise else: sys.exit(2)