From b95983be4676117636b7c4459faf0857e79dd37d Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 19 Apr 2022 19:33:13 +0200 Subject: bugfix: prevent default function argument from being modified upon first call --- src/hydrilla/server/config.py | 1 + 1 file changed, 1 insertion(+) 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: -- cgit v1.2.3