Skip to content

Commit

Permalink
FIX: Updated logical expression to remove short circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
fazledyn-or committed Oct 9, 2023
1 parent 76ecd99 commit d710502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmgpy/data/solvation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ def _add_ring_correction_solute_data_from_tree(self, solute_data, ring_database,
entry = ring_database.descend_tree(molecule, atoms)
matched_ring_entries.append(entry)

if matched_ring_entries is []:
if matched_ring_entries == []:
raise KeyError('Node not found in database.')
# Decide which group to keep
is_partial_match = True
Expand Down

0 comments on commit d710502

Please sign in to comment.