Skip to content
Snippets Groups Projects
Commit 69cd067f authored by inso's avatar inso
Browse files

Fix crash when no cert_time in identity

parent f72e496f
No related branches found
No related tags found
No related merge requests found
......@@ -487,7 +487,7 @@ class Identity(QObject):
"""
certified = await self.certified_by(identities_registry, community)
if len(certified) > 0:
latest_time = max([c['cert_time'] for c in certified])
latest_time = max([c['cert_time'] for c in certified if c['cert_time']])
parameters = await community.parameters()
if parameters and latest_time:
current_time = time.time()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment