Import deepcopy specifically

This commit is contained in:
Matthias
2023-05-13 13:43:32 +02:00
parent 0d4010c38c
commit af95d56ceb

View File

@@ -1,9 +1,9 @@
""" """
Freqtrade is the main module of this bot. It contains the class Freqtrade() Freqtrade is the main module of this bot. It contains the class Freqtrade()
""" """
import copy
import logging import logging
import traceback import traceback
from copy import deepcopy
from datetime import datetime, time, timedelta, timezone from datetime import datetime, time, timedelta, timezone
from math import isclose from math import isclose
from threading import Lock from threading import Lock
@@ -461,7 +461,7 @@ class FreqtradeBot(LoggingMixin):
""" """
trades_created = 0 trades_created = 0
whitelist = copy.deepcopy(self.active_pair_whitelist) whitelist = deepcopy(self.active_pair_whitelist)
if not whitelist: if not whitelist:
self.log_once("Active pair whitelist is empty.", logger.info) self.log_once("Active pair whitelist is empty.", logger.info)
return trades_created return trades_created