From 8e6be820b57ce4fd952cf81c2506a69c5480892e Mon Sep 17 00:00:00 2001 From: thomasv Date: Mon, 22 Apr 2013 09:19:25 +0200 Subject: [PATCH] fix: assert fails on startup --- gui/gui_lite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/gui_lite.py b/gui/gui_lite.py index 7f8a4b2bd..718e407e5 100644 --- a/gui/gui_lite.py +++ b/gui/gui_lite.py @@ -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()