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

Fix crash when changing community

parent a055f5de
No related branches found
No related tags found
No related merge requests found
......@@ -81,8 +81,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
if self.community:
try:
self.community.network.new_block_mined.disconnect(self.refresh)
except ValueError as e:
if "disconnect" in str(e):
except TypeError as e:
if "connected" in str(e):
logging.debug("new block mined not connected")
if self.app.preferences["auto_refresh"]:
if new_community:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment