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

Better handling of community connection failure

parent 5111c4cb
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,7 @@ class Application(object):
self.load()
def get_account(self, name):
if not self.accounts[name]:
self.load_account(name)
self.load_account(name)
if name in self.accounts.keys():
return self.accounts[name]
else:
......
......@@ -49,7 +49,7 @@ class BlockchainWatcher(QObject):
except NoPeerAvailable:
return
except requests.exceptions.RequestException as e:
self.connection_error.emit(str(e))
self.connection_error.emit("Cannot check new block : {0}".format(str(e)))
new_block_mined = pyqtSignal(int)
connection_error = pyqtSignal(str)
......
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