9341: _deeprelationshippath line 98, NoneType in find_deep_relations

This commit is contained in:
SNoiraud 2016-08-18 12:13:59 +02:00
parent f95c8a2036
commit 1f45e8996b

View File

@ -95,6 +95,8 @@ def find_deep_relations(db, progress, person, path, seen, target_people):
if len(target_people) < 1:
return []
if person is None:
return []
handle = person.get_handle()
if handle in seen:
return []