Skip to content

Commit 9026d69

Browse files
expand exception catch for potcar library search
1 parent 21dd8af commit 9026d69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymatgen/io/validation/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from typing import TYPE_CHECKING, Any, Optional
1414

1515
from pymatgen.core import Structure
16-
from pymatgen.io.vasp.inputs import POTCAR_STATS_PATH, Incar, Kpoints, Poscar, Potcar
16+
from pymatgen.io.vasp.inputs import POTCAR_STATS_PATH, Incar, Kpoints, Poscar, Potcar, PmgVaspPspDirError
1717
from pymatgen.io.vasp.outputs import Outcar, Vasprun
1818
from pymatgen.io.vasp.sets import VaspInputSet
1919

@@ -187,7 +187,7 @@ def from_vasp_input_set(cls, vis: VaspInputSet) -> Self:
187187
potcar: list[PotcarSummaryStats] = PotcarSummaryStats.from_file(vis.potcar)
188188
potcar_functional = vis.potcar_functional
189189

190-
except FileNotFoundError:
190+
except (FileNotFoundError, PmgVaspPspDirError):
191191
# Fall back to pregenerated POTCAR meta
192192
# Note that multiple POTCARs may use the same symbol / TITEL
193193
# within a given release of VASP.

0 commit comments

Comments
 (0)