diff options
author | infirit <[email protected]> | 2014-02-08 17:00:47 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-02-08 17:26:53 +0100 |
commit | 89319085fd904fb3752bec819d2ac83b1b4454a3 (patch) | |
tree | 7879fcfa7fdb8da8529418724b6613ca3e1e32ef /invest-applet/invest | |
parent | c36ff1bb4e59d9afcb8b845a411d21d2b53aaf69 (diff) | |
download | mate-applets-89319085fd904fb3752bec819d2ac83b1b4454a3.tar.bz2 mate-applets-89319085fd904fb3752bec819d2ac83b1b4454a3.tar.xz |
invest-applet: ignore unknown stocks
Author: Enrico Minack <[email protected]>
Commit: 9be66818e7b75df4db86b88154c7df47afda9a79
Url: https://git.gnome.org/browse/gnome-applets/commit/?id=9be66818e7b75df4db86b88154c7df47afda9a79
gnome-bug: http://bugzilla.gnome.org/show_bug.cgi?id=608842
Diffstat (limited to 'invest-applet/invest')
-rw-r--r-- | invest-applet/invest/quotes.py | 5 |
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: |