Skip to content

Commit c3451a2

Browse files
authored
Update comp.py
1 parent 3fba18f commit c3451a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpdata/deepmd/comp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def dump(folder,
105105
np.save(os.path.join(set_folder, "atom_pref"), atom_pref[set_stt:set_end])
106106
try:
107107
os.remove(os.path.join(folder, "nopbc"))
108-
except:
108+
except OSError:
109109
pass
110110
if data.get("nopbc", False):
111111
os.mknod(os.path.join(folder, "nopbc"))

0 commit comments

Comments
 (0)