mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Replace exit() with sys.exit() to work on Windows
Windows was complaining that 'exit' is not defined.
This commit is contained in:
parent
766c455929
commit
aa1476d59b
1 changed files with 2 additions and 2 deletions
|
@ -95,9 +95,9 @@ def cli_main(
|
|||
print_header("Failed to convert document(s)")
|
||||
for document in documents_failed:
|
||||
click.echo(document.input_filename)
|
||||
exit(1)
|
||||
sys.exit(1)
|
||||
else:
|
||||
exit(0)
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
args.override_parser_and_check_suspicious_options(cli_main)
|
||||
|
|
Loading…
Reference in a new issue