mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-13 03:33:55 +00:00
Fix version comparison to use packaging.version
This commit is contained in:
parent
dc7b8ac7ba
commit
0296061e49
|
@ -1,5 +1,7 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from packaging import version
|
||||||
|
|
||||||
from freqtrade.constants import Config
|
from freqtrade.constants import Config
|
||||||
from freqtrade.enums.tradingmode import TradingMode
|
from freqtrade.enums.tradingmode import TradingMode
|
||||||
from freqtrade.exceptions import OperationalException
|
from freqtrade.exceptions import OperationalException
|
||||||
|
@ -19,7 +21,7 @@ def migrate_binance_futures_names(config: Config):
|
||||||
# only act on new futures
|
# only act on new futures
|
||||||
return
|
return
|
||||||
import ccxt
|
import ccxt
|
||||||
if "2.6.6" > ccxt.__version__:
|
if version.parse("2.6.6") > version.parse(ccxt.__version__):
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
"Please follow the update instructions in the docs "
|
"Please follow the update instructions in the docs "
|
||||||
"(https://www.freqtrade.io/en/latest/updating/) to install a compatible ccxt version.")
|
"(https://www.freqtrade.io/en/latest/updating/) to install a compatible ccxt version.")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user