X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/467efe15562e3bad88b1eb3bc11f76b5b9a68816..8954e58ccf620a9c797f5e6ea3c53bc1f21f14d9:/src/black_primer/cli.py?ds=sidebyside diff --git a/src/black_primer/cli.py b/src/black_primer/cli.py index 2395d35..8524b59 100644 --- a/src/black_primer/cli.py +++ b/src/black_primer/cli.py @@ -104,13 +104,12 @@ async def async_main( no_diff, ) return int(ret_val) + finally: if not keep and work_path.exists(): LOG.debug(f"Removing {work_path}") rmtree(work_path, onerror=lib.handle_PermissionError) - return -2 - @click.command(context_settings={"help_option_names": ["-h", "--help"]}) @click.option(