fixing bug

This commit is contained in:
Cayo Puigdefabregas 2022-04-13 13:27:58 +02:00
parent 0d65dd7686
commit 0b5d8d46d1
2 changed files with 2 additions and 4422 deletions

File diff suppressed because it is too large Load Diff

View File

@ -69,7 +69,8 @@ class User(UserMixin, Thing):
@property
def individual(self):
"""The individual associated for this database, or None."""
return next(iter(self.individuals), None)
if self.individuals:
return next(iter(self.individuals), None)
@property
def code(self):