Skip to content

Commit

Permalink
[Python] Avoid nondeterminism in error message
Browse files Browse the repository at this point in the history
The message would vary between reruns, which is not useful.
  • Loading branch information
keszybz authored and speth committed Oct 30, 2024
1 parent ee461a3 commit afa45f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/cython/cantera/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ def join(species):
if valid_species:

if len(valid_species) != len(all_species):
incompatible = list(set(valid_species) ^ set(all_species))
incompatible = sorted(set(valid_species) ^ set(all_species))
raise ValueError('incompatible species information for '
'{}'.format(incompatible))

Expand Down

0 comments on commit afa45f4

Please sign in to comment.