Deepcopy config before adding proxies

This commit is contained in:
Matthias 2023-01-16 21:31:01 +01:00
parent f46b62f1a7
commit b193d8418d

View File

@ -113,12 +113,14 @@ def set_test_proxy(config: Config, use_proxy: bool) -> Config:
# Set proxy to test in CI. # Set proxy to test in CI.
import os import os
if use_proxy and (proxy := os.environ.get('CI_WEB_PROXY')): if use_proxy and (proxy := os.environ.get('CI_WEB_PROXY')):
config['exchange']['ccxt_config'] = { config1 = deepcopy(config)
config1['exchange']['ccxt_config'] = {
'proxies': { 'proxies': {
'https': proxy, 'https': proxy,
'http': proxy, 'http': proxy,
} }
} }
return config1
return config return config