From 3a3c8e4d4a77135eaee5cb30c3107a4531c300ce Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 30 Jun 2020 11:31:08 -0700 Subject: [PATCH] move verbose_debug under debug check --- jc/cli.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index fd644d46..10445562 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -399,12 +399,13 @@ def main(): break except Exception: - if verbose_debug: - import cgitb - cgitb.enable(display=1, logdir=None, context=5, format="text") - if debug: + if verbose_debug: + import cgitb + cgitb.enable(display=1, logdir=None, context=5, format="text") + raise + else: jc.utils.error_message( f'{parser_name} parser could not parse the input data. Did you use the correct parser?\n For details use the -d option.')