Assert to make sure method is called correctly

svn: r16317
This commit is contained in:
Doug Blank 2010-12-27 18:22:54 +00:00
parent 0cc035279b
commit 4daf72f8d8

View File

@ -145,6 +145,7 @@ class SurnameBase(object):
Set the surname with surnamenr in the surname list as primary surname
Counting starts at 0
"""
assert isinstance(surnamenr, int), "Surname.set_primary_surname requires integer"
if surnamenr >= len(self.surname_list):
return
for surname in self.surname_list: