diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-04-19 19:33:13 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-04-19 19:33:13 +0200 |
commit | b95983be4676117636b7c4459faf0857e79dd37d (patch) | |
tree | a8ce762bf0da10cdfee33dd5aaad4a569a7553af /src/hydrilla | |
parent | 50f624d2dfec94dee380dee98d4723e41fc4da06 (diff) | |
download | haketilo-hydrilla-b95983be4676117636b7c4459faf0857e79dd37d.tar.gz haketilo-hydrilla-b95983be4676117636b7c4459faf0857e79dd37d.zip |
bugfix: prevent default function argument from being modified upon first call
Diffstat (limited to 'src/hydrilla')
-rw-r--r-- | src/hydrilla/server/config.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hydrilla/server/config.py b/src/hydrilla/server/config.py index e0cc186..1edd070 100644 --- a/src/hydrilla/server/config.py +++ b/src/hydrilla/server/config.py @@ -78,6 +78,7 @@ def load(config_paths: list[Path]=[here / 'config.json'], config = {} bools_missing = max(0, len(config_paths) - len(can_fail)) + config_paths = [*config_paths] can_fail = [*can_fail[:len(config_paths)], *([False] * bools_missing)] while config_paths: |