Skip to content

Commit

Permalink
style: add Exception after except
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersCattt committed Jul 3, 2024
1 parent aebec7c commit 81a27d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpdata/xyz/quip_gap_xyz.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def handle_single_xyz_frame(lines):
info_dict["forces"] = np.array([force_array]).astype("float32")

Check warning on line 280 in dpdata/xyz/quip_gap_xyz.py

View check run for this annotation

Codecov / codecov/patch

dpdata/xyz/quip_gap_xyz.py#L280

Added line #L280 was not covered by tests
else:
info_dict["forces"] = np.array([force_array]).astype("float32")

Check warning on line 282 in dpdata/xyz/quip_gap_xyz.py

View check run for this annotation

Codecov / codecov/patch

dpdata/xyz/quip_gap_xyz.py#L282

Added line #L282 was not covered by tests
except:
except Exception:
info_dict["forces"] = np.array([force_array]).astype("float32")

if virials is not None:
Expand Down

0 comments on commit 81a27d8

Please sign in to comment.