Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoura committed May 9, 2021
1 parent e6aab1c commit 767e870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cardano_node_tests/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def check_file_arg(file_path: str) -> Optional[Path]:
if not file_path:
return None
abs_path = Path(file_path).expanduser().resolve()
if not abs_path.exists() and abs_path.is_file():
if not (abs_path.exists() and abs_path.is_file()):
raise argparse.ArgumentTypeError(f"check_file_arg: file '{file_path}' doesn't exist")
return abs_path

Expand Down

0 comments on commit 767e870

Please sign in to comment.