From ebddbcb805ab603287267cfd684c75d85e72a41d Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 3 Sep 2015 17:17:46 +0900 Subject: [PATCH] Fix bug. --- plugins/exchange_rate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py index 534dadc4f..12b51633a 100644 --- a/plugins/exchange_rate.py +++ b/plugins/exchange_rate.py @@ -323,8 +323,9 @@ class Plugin(BasePlugin): else: return - for window in self.gui.windows: - window.need_update.set() + if self.gui: + for window in self.gui.windows: + window.need_update.set() def requires_settings(self): return True