Skip to content

Commit 81a27d8

Browse files
style: add Exception after except
1 parent aebec7c commit 81a27d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpdata/xyz/quip_gap_xyz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def handle_single_xyz_frame(lines):
280280
info_dict["forces"] = np.array([force_array]).astype("float32")
281281
else:
282282
info_dict["forces"] = np.array([force_array]).astype("float32")
283-
except:
283+
except Exception:
284284
info_dict["forces"] = np.array([force_array]).astype("float32")
285285

286286
if virials is not None:

0 commit comments

Comments
 (0)