tfix: assert fails on startup - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 8e6be820b57ce4fd952cf81c2506a69c5480892e DIR parent 6b690d681aada8cc259779d4e9453ee49a745206 HTML Author: thomasv <thomasv@gitorious> Date: Mon, 22 Apr 2013 09:19:25 +0200 fix: assert fails on startup Diffstat: M gui/gui_lite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/gui/gui_lite.py b/gui/gui_lite.py t@@ -474,7 +474,8 @@ class MiniWindow(QDialog): def set_quote_currency(self, currency): """Set and display the fiat currency country.""" - assert currency in self.quote_currencies + if currency not in self.quote_currencies: + return self.quote_currencies.remove(currency) self.quote_currencies.insert(0, currency) self.refresh_balance()