Skip to content

Commit

Permalink
Fix PLW1510 warn in ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Oct 15, 2023
1 parent 5186384 commit 2d723f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nix_alien/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2d723f2

Please sign in to comment.