Assert to make sure method is called correctly
svn: r16317
This commit is contained in:
parent
0cc035279b
commit
4daf72f8d8
@ -145,6 +145,7 @@ class SurnameBase(object):
|
|||||||
Set the surname with surnamenr in the surname list as primary surname
|
Set the surname with surnamenr in the surname list as primary surname
|
||||||
Counting starts at 0
|
Counting starts at 0
|
||||||
"""
|
"""
|
||||||
|
assert isinstance(surnamenr, int), "Surname.set_primary_surname requires integer"
|
||||||
if surnamenr >= len(self.surname_list):
|
if surnamenr >= len(self.surname_list):
|
||||||
return
|
return
|
||||||
for surname in self.surname_list:
|
for surname in self.surname_list:
|
||||||
|
Loading…
Reference in New Issue
Block a user