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

Fix issue #498

parent 321df1ec
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ from . import money
from .wallet import Wallet
from .community import Community
from .registry import LocalState
from ..tools.exceptions import ContactAlreadyExists
from ..tools.exceptions import ContactAlreadyExists, LookupFailureError
from .. import __version__
......@@ -509,8 +509,12 @@ class Account(QObject):
"""
logging.debug("Certdata")
blockUID = community.network.current_blockUID
identity = await self._identities_registry.future_find(pubkey, community)
selfcert = await identity.selfcert(community)
try:
identity = await self._identities_registry.future_find(pubkey, community)
selfcert = await identity.selfcert(community)
except LookupFailureError as e:
return False, str(e)
if selfcert:
certification = Certification(PROTOCOL_VERSION, community.currency,
self.pubkey, pubkey, blockUID, None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment