diff --git a/src/cutecoin/core/app.py b/src/cutecoin/core/app.py index d6d1f611a45c391f5c353cb8d5ccdd62d755c027..e351f3ef84b0f9b10acd622ea6823503b55ec517 100644 --- a/src/cutecoin/core/app.py +++ b/src/cutecoin/core/app.py @@ -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: diff --git a/src/cutecoin/gui/currency_tab.py b/src/cutecoin/gui/currency_tab.py index 3c53eec430e488d2942e6d168444c06dc2f5712b..796392d81ea1418d2bedfaa0dac2145dafbd6192 100644 --- a/src/cutecoin/gui/currency_tab.py +++ b/src/cutecoin/gui/currency_tab.py @@ -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)