bluppfisk / coindicator

A crypto-currency (Bitcoin, Ethereum et al) market price indicator for the Linux desktop. Sits in the tray and lets you set alerts. Supports GNOME, Unity and KDE.
MIT License
156 stars 40 forks source link

`Add ticker` gives an error #68

Closed tmfelwu closed 4 years ago

tmfelwu commented 4 years ago

When i try to add ticker, I get the following errror

Traceback (most recent call last):
  File "./coin/coin.py", line 248, in _add_ticker
    i = self._add_indicator(self.settings.get('tickers')[len(self.settings.get('tickers')) - 1])
IndexError: list index out of range

My user.conf file is

plugins:
- binance: true
- bitfinex: false
- bitstamp: false
- bittrex: false
- cexio: false
- gdax: false
- gemini: false
- hitbtc: false
- kraken: false
- okcoin: false
- poloniex: false
- unocoin: false
recent: []
tickers: []

I am not sure what to add in tickers.

bluppfisk commented 4 years ago

That's a regression and my fault, sorry. It should be fixed with this latest commit, which will also do synchronous discovery when it first starts and are no data files yet.

tmfelwu commented 4 years ago

Thanks for the quick fix @bluppfisk