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

Clean a bit the code

parent d4019134
Branches
No related tags found
No related merge requests found
...@@ -249,7 +249,6 @@ class Identity(QObject): ...@@ -249,7 +249,6 @@ class Identity(QObject):
if person_uid == self.uid: if person_uid == self.uid:
return True return True
except errors.DuniterError as e: except errors.DuniterError as e:
if e.ucode in (errors.NO_MATCHING_IDENTITY,):
logging.debug("Lookup error : {0}".format(str(e))) logging.debug("Lookup error : {0}".format(str(e)))
except NoPeerAvailable as e: except NoPeerAvailable as e:
logging.debug(str(e)) logging.debug(str(e))
...@@ -280,8 +279,6 @@ class Identity(QObject): ...@@ -280,8 +279,6 @@ class Identity(QObject):
except errors.DuniterError as e: except errors.DuniterError as e:
if e.ucode in (errors.NO_MATCHING_IDENTITY, errors.NO_MEMBER_MATCHING_PUB_OR_UID): if e.ucode in (errors.NO_MATCHING_IDENTITY, errors.NO_MEMBER_MATCHING_PUB_OR_UID):
pass pass
else:
raise
except NoPeerAvailable as e: except NoPeerAvailable as e:
logging.debug(str(e)) logging.debug(str(e))
return False return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment