Permalink
Browse files

[python] Actually helpful error in BondedInteraction

  • Loading branch information...
hmenke committed Jan 12, 2018
1 parent 9899997 commit f297b390b6fbd33530cdacb910a895474da5aa3c
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/python/espressomd/interactions.pyx
@@ -1523,7 +1523,8 @@ cdef class BondedInteraction(object):
for k in p.keys():
if k not in self.valid_keys():
raise ValueError(
"Only the following keys are supported: " + self.valid_keys().__str__)
"Key '{}' invalid! Only the following keys are supported: {}"
.format(k, ", ".join(self.valid_keys())))
# Initialize default values
self.set_default_params()

0 comments on commit f297b39

Please sign in to comment.