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

Fix bugs in empty community

parent 3607a99e
No related branches found
No related tags found
No related merge requests found
...@@ -228,7 +228,7 @@ class Identity(QObject): ...@@ -228,7 +228,7 @@ class Identity(QObject):
{'search': self.pubkey}) {'search': self.pubkey})
return certifiers['isMember'] return certifiers['isMember']
except ValueError as e: except ValueError as e:
if '404' in str(e): if '404' in str(e) or '400' in str(e):
pass pass
else: else:
raise raise
......
...@@ -88,7 +88,7 @@ class CertificationDialog(QDialog, Ui_CertificationDialog): ...@@ -88,7 +88,7 @@ class CertificationDialog(QDialog, Ui_CertificationDialog):
try: try:
block_0 = yield from self.community.get_block(0) block_0 = yield from self.community.get_block(0)
except ValueError as e: except ValueError as e:
if '404' in str(e): if '404' in str(e) or '000' in str(e):
block_0 = None block_0 = None
except NoPeerAvailable as e: except NoPeerAvailable as e:
logging.debug(str(e)) logging.debug(str(e))
......
...@@ -192,7 +192,7 @@ class CommunityWidget(QWidget, Ui_CommunityWidget): ...@@ -192,7 +192,7 @@ class CommunityWidget(QWidget, Ui_CommunityWidget):
except NoPeerAvailable as e: except NoPeerAvailable as e:
logging.debug(str(e)) logging.debug(str(e))
text += " ( ### ) " text += " ( ### ) "
except NoPeerAvailable as e: except ValueError as e:
logging.debug(str(e)) logging.debug(str(e))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment