diff --git a/dpdata/xyz/quip_gap_xyz.py b/dpdata/xyz/quip_gap_xyz.py index 11b91a23..6c5db29f 100644 --- a/dpdata/xyz/quip_gap_xyz.py +++ b/dpdata/xyz/quip_gap_xyz.py @@ -280,7 +280,7 @@ def handle_single_xyz_frame(lines): info_dict["forces"] = np.array([force_array]).astype("float32") else: info_dict["forces"] = np.array([force_array]).astype("float32") - except: + except Exception: info_dict["forces"] = np.array([force_array]).astype("float32") if virials is not None: