Closed dev-x0 closed 5 years ago
This is related to external feeds, i will take a look after project administrative tasks
I find this bug to be introduced during @joelvai 's refactoring in december where the "none" option is commented out.
suggest default value to be none
in config element instead of exchanges[0] . will continue to look at this tmr.
Is there a planned fix for this bug?
Ok, I'm able to reproduce the problem only by using a input value outside of proposed:
External price source - The bot will try to get price information from this source
1) Coingecko
2) Waves DEX
3) Kraken
4) Bitfinex
5) Gdax
6) Binance
Your choice: [1]: 7
Traceback (most recent call last):
File "./cli.py", line 6, in <module>
cli.main()
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/vvk/devel/DEXBot/dexbot/ui.py", line 130, in new_func
return ctx.invoke(f, *args, **kwargs)
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/vvk/devel/DEXBot/dexbot/ui.py", line 87, in new_func
return ctx.invoke(f, *args, **kwargs)
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/vvk/devel/DEXBot/dexbot/ui.py", line 120, in new_func
return ctx.invoke(f, *args, **kwargs)
File "/home/vvk/.local/share/virtualenvs/DEXBot-XTl2tJdV/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/vvk/devel/DEXBot/dexbot/cli.py", line 145, in configure
configure_dexbot(config, ctx)
File "/home/vvk/devel/DEXBot/dexbot/cli_conf.py", line 277, in configure_dexbot
config['workers'][txt] = configure_worker(whiptail, {})
File "/home/vvk/devel/DEXBot/dexbot/cli_conf.py", line 236, in configure_worker
process_config_element(elem, whiptail, worker_config)
File "/home/vvk/devel/DEXBot/dexbot/cli_conf.py", line 122, in process_config_element
config.get(elem.key, elem.default), elem.extra))
File "/home/vvk/devel/DEXBot/dexbot/whiptail.py", line 157, in radiolist
return self.menu(msg, [(k, v) for k, v, s in items], default=default)
File "/home/vvk/devel/DEXBot/dexbot/whiptail.py", line 147, in menu
ret = items[ret - 1]
IndexError: list index out of range
I already made the fix on my branch here, the bug i did not find on whiptail but in the config elements. Here is the pull request: https://github.com/Codaone/DEXBot/pull/503
Why are we making the assignment of this redundant? @PermieBTS @vvk
@PermieBTS asked me to look into this bug.
There was some confusion between octo and I over reassigning this issue to vvk. My apologies
Expected Behavior
I assume config just moves onto next step.
Actual Behavior
Config outputs an error.
Steps to Reproduce the Problem
Specifications