tkivy: fix a race at startup - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit fd09033890f44f6279385d79309410299cacb9ca DIR parent 720519f610e7a3619710399781ad906140804d9e HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 6 May 2019 21:10:52 +0200 kivy: fix a race at startup on_history (fx) races with load_wallet Diffstat: M electrum/gui/kivy/main_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py t@@ -180,7 +180,8 @@ class ElectrumWindow(App): def on_history(self, d): Logger.info("on_history") - self.wallet.clear_coin_price_cache() + if self.wallet: + self.wallet.clear_coin_price_cache() self._trigger_update_history() def on_fee_histogram(self, *args):