Skip to content

Commit

Permalink
Fix for mypy SCMSUITE-10114 SO107
Browse files Browse the repository at this point in the history
  • Loading branch information
dormrod committed Dec 11, 2024
1 parent ebe89ec commit a2d8217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mol/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ def delete_atoms(self, atoms: Iterable[Atom]) -> None:
except MoleculeError as err:
errors.append(f"{err}")
if any(errors):
errors = str.join("\n", errors)
raise MoleculeError(f"Encountered one or more errors when deleting atoms:\n{errors}")
error_details = str.join("\n", errors)
raise MoleculeError(f"Encountered one or more errors when deleting atoms:\n{error_details}")

def add_bond(self, arg1: Union[Bond, Atom], arg2: Optional[Atom] = None, order: float = 1) -> None:
"""Add a new bond to the molecule.
Expand Down

0 comments on commit a2d8217

Please sign in to comment.