Skip to content

Commit

Permalink
fix: Update erroneous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carstencodes committed Jan 30, 2023
1 parent 56cc964 commit 307d0e8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/flake518/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,10 @@ def run(argv: Optional[_List[str]] = None) -> None:
else:
logger.debug("Running flake8 without modified configuration")

ret = run_flake8(args)
if not keep_file and (config_file is not None and config_file.exists()
and config_file.is_file()):
config_file.unlink()
raise SystemExit(ret)
try:
ret = run_flake8(args)
raise SystemExit(ret)
finally:
if not keep_file and (config_file is not None and config_file.exists()
and config_file.is_file()):
config_file.unlink()

0 comments on commit 307d0e8

Please sign in to comment.