X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/467efe15562e3bad88b1eb3bc11f76b5b9a68816..4ce049dbfa8ddd00bff3656cbca6ecf5f85c413e:/src/black_primer/cli.py 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(