summaryrefslogtreecommitdiff
path: root/invest-applet
diff options
context:
space:
mode:
Diffstat (limited to 'invest-applet')
-rw-r--r--invest-applet/invest/quotes.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/invest-applet/invest/quotes.py b/invest-applet/invest/quotes.py
index b6182d07..b5bbd7ea 100644
--- a/invest-applet/invest/quotes.py
+++ b/invest-applet/invest/quotes.py
@@ -279,6 +279,11 @@ class QuoteUpdater(Gtk.ListStore):
for ticker, val in quote_items:
pb = None
+ # ignore unknown stocks
+ if ticker not in invest.STOCKS.keys():
+ invest.debug("Observed unknown stock: %s" % ticker)
+ continue
+
# get the label of this stock for later reuse
label = mate_invest.STOCKS[ticker]["label"]
if len(label) == 0: