1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-21 00:19:42 +02:00

move verbose_debug under debug check

This commit is contained in:
Kelly Brazil
2020-06-30 11:31:08 -07:00
parent c1ac183a04
commit 3a3c8e4d4a

View File

@ -399,12 +399,13 @@ def main():
break break
except Exception: except Exception:
if verbose_debug:
import cgitb
cgitb.enable(display=1, logdir=None, context=5, format="text")
if debug: if debug:
if verbose_debug:
import cgitb
cgitb.enable(display=1, logdir=None, context=5, format="text")
raise raise
else: else:
jc.utils.error_message( 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.') f'{parser_name} parser could not parse the input data. Did you use the correct parser?\n For details use the -d option.')