Deepcopy config before adding proxies
This commit is contained in:
parent
f46b62f1a7
commit
b193d8418d
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user