summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-04-19 19:33:13 +0200
committerWojtek Kosior <koszko@koszko.org>2022-04-19 19:33:13 +0200
commitb95983be4676117636b7c4459faf0857e79dd37d (patch)
treea8ce762bf0da10cdfee33dd5aaad4a569a7553af
parent50f624d2dfec94dee380dee98d4723e41fc4da06 (diff)
downloadhaketilo-hydrilla-b95983be4676117636b7c4459faf0857e79dd37d.tar.gz
haketilo-hydrilla-b95983be4676117636b7c4459faf0857e79dd37d.zip
bugfix: prevent default function argument from being modified upon first call
-rw-r--r--src/hydrilla/server/config.py1
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: