Skip to content

Commit

Permalink
Python: Extended error message for missing kwargs in actors
Browse files Browse the repository at this point in the history
  • Loading branch information
RudolfWeeber authored and fweik committed Jun 29, 2015
1 parent bddc720 commit 845b7d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/espressomd/actors.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cdef class Actor(object):
for k in self.requiredKeys():
if k not in kwargs:
raise ValueError(
"At least the following keys have to be given as keyword arguments: " + self.requiredKeys().__str__())
"At least the following keys have to be given as keyword arguments: " + self.requiredKeys().__str__()+" got "+kwargs.__str__())
self._params[k] = kwargs[k]

for k in kwargs:
Expand Down

0 comments on commit 845b7d2

Please sign in to comment.