Skip to content

Commit

Permalink
[fix]: Change if statement to not break when it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
hentt30 committed May 18, 2021
1 parent 3a80d06 commit ead7680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minushalf/utils/check_file_exists.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def check_outcar_exists(func):
def func_wrapper(self, *args, **kwargs):
kwargs["filename"] = "OUTCAR"
path = kwargs["filename"]
if kwargs["base_path"]:
if "base_path" in kwargs:
path = os.path.join(kwargs["base_path"], kwargs["filename"])
if not os.path.exists(path):
raise ValueError("File {} does not exist".format(
Expand Down

0 comments on commit ead7680

Please sign in to comment.