diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py index 91d195ca..84447693 100644 --- a/plugins/exchange_rate.py +++ b/plugins/exchange_rate.py @@ -343,8 +343,11 @@ class Plugin(BasePlugin): def history_tab_update(self): if self.config.get('history_rates', 'unchecked') == "checked": - tx_list = self.tx_list - + try: + tx_list = self.tx_list + except Exception: + return + try: mintimestr = datetime.datetime.fromtimestamp(int(min(tx_list.items(), key=lambda x: x[1]['timestamp'])[1]['timestamp'])).strftime('%Y-%m-%d') except ValueError: