Skip to content

Commit

Permalink
fix get_zfile()
Browse files Browse the repository at this point in the history
refactor caused     raise FileNotFoundError(f"Could not find {base_name} or {base_name}.gz file.")
FileNotFoundError: Could not find INCAR or INCAR.gz file.
  • Loading branch information
janosh committed Feb 23, 2023
1 parent 93c3ddf commit 8f60702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atomate2/common/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def get_zfile(
found, then ``None`` will be returned.
"""
for file in directory_listing:
if base_name in [file.name, file.name + ".gz", file.name + ".GZ"]:
if file.name in [base_name, base_name + ".gz", base_name + ".GZ"]:
return file

if allow_missing:
Expand Down

0 comments on commit 8f60702

Please sign in to comment.