Skip to content

Commit

Permalink
Merge pull request #2555 from fazledyn-or/Fix_Inappropriate_Logic
Browse files Browse the repository at this point in the history
FIX: Updated logical expression to remove short circuit
  • Loading branch information
JacksonBurns authored Oct 9, 2023
2 parents 76ecd99 + d710502 commit afdb597
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 afdb597

Please sign in to comment.