From 2d723f26c57213892a1f9641e11b2a09766e8479 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Sun, 15 Oct 2023 12:33:05 +0100 Subject: [PATCH] Fix PLW1510 warn in ruff --- nix_alien/helpers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix_alien/helpers.py b/nix_alien/helpers.py index 6c243d0..c6fb850 100644 --- a/nix_alien/helpers.py +++ b/nix_alien/helpers.py @@ -12,7 +12,9 @@ def edit_file(file: Path) -> subprocess.CompletedProcess: editor = os.environ.get("EDITOR", "nano") - return subprocess.run([editor, file]) + # Explicitly not checking the result here since it doesn't matter + # if the editor exists successfully or not here + return subprocess.run([editor, file], check=False) def get_hash_for_program(program: str) -> uuid.UUID: