tquote_currency setting can be None on first time use. Remove assert. - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 56bb7087d77ba80cf3995ba627371576b694a684 DIR parent 4494ac8ccc82a8559428dfdcc42815b07c563485 HTML Author: genjix <genjix@night.(none)> Date: Sat, 7 Jul 2012 18:00:07 +0100 quote_currency setting can be None on first time use. Remove assert. Diffstat: M lib/gui_lite.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/gui_lite.py b/lib/gui_lite.py t@@ -450,8 +450,10 @@ class MiniActuator: def set_configured_currency(self, set_quote_currency): currency = self.wallet.conversion_currency - assert currency is not None - set_quote_currency(currency) + # currency can be none when Electrum is used for the first + # time and no setting has been created yet. + if currency is not None: + set_quote_currency(currency) def set_config_currency(self, conversion_currency): self.wallet.conversion_currency = conversion_currency