diff --git a/scripts/asciidoc2html.py b/scripts/asciidoc2html.py index c5da58b86..0e9813a0d 100755 --- a/scripts/asciidoc2html.py +++ b/scripts/asciidoc2html.py @@ -50,13 +50,13 @@ def call_asciidoc(src, dst): args.append(src) try: subprocess.check_call(args) - except (subprocess.CalledProcessError, OSError) as e: - utils.print_col(str(e), 'red') - sys.exit(1) except FileNotFoundError: utils.print_col("asciidoc needs to be installed to use this script!", 'red') sys.exit(1) + except (subprocess.CalledProcessError, OSError) as e: + utils.print_col(str(e), 'red') + sys.exit(1) def main(colors=False):