diff --git a/src/cutecoin/core/registry/identity.py b/src/cutecoin/core/registry/identity.py index 7081d29216056e9e492d22a935e52ef7fbf0b549..b7676750168f3db9405748a6af78e94e21227930 100644 --- a/src/cutecoin/core/registry/identity.py +++ b/src/cutecoin/core/registry/identity.py @@ -301,8 +301,12 @@ class Identity(QObject): # Â add certifiers of uid for certifier in tuple(certifier_list): # add only valid certification... - cert_expired = yield from community.certification_expired(certifier['cert_time']) - if cert_expired: + try: + cert_expired = yield from community.certification_expired(certifier['cert_time']) + if cert_expired: + continue + except NoPeerAvailable: + logging.debug("No peer available") continue # keep only the latest certification @@ -373,8 +377,12 @@ class Identity(QObject): # Â add certifiers of uid for certified in tuple(certified_list): # add only valid certification... - cert_expired = yield from community.certification_expired(certified['cert_time']) - if cert_expired: + try: + cert_expired = yield from community.certification_expired(certified['cert_time']) + if cert_expired: + continue + except NoPeerAvailable: + logging.debug("No peer available") continue # keep only the latest certification