diff --git a/rmgpy/data/kinetics/family.py b/rmgpy/data/kinetics/family.py index a05056a069..43e3836169 100644 --- a/rmgpy/data/kinetics/family.py +++ b/rmgpy/data/kinetics/family.py @@ -1701,9 +1701,9 @@ def _create_reaction(self, reactants, products, is_forward): ) if not self.allow_charged_species: - charged_species = [spc for spc in (reaction.reactants + reaction.products) if spc.get_net_charge() != 0] - if charged_species: - return None + for spc in (reaction.reactants + reaction.products): + if spc.get_net_charge() != 0: + return None if not reaction.is_balanced(): return None