Skip to content

Commit cbfcf4d

Browse files
committed
Fix issue with the integration of the collection.
This patch fixes #273. Indeed, while deploying the source code related to the collection, the integration into existing infrastructure wasn't smooth. This patch fixes it by loading the collection later in the loading process. Contributors: * @ZeroDot1 * @DandelionSprout
1 parent cf90bdb commit cbfcf4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PyFunceble/config/loader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ def start(self) -> "ConfigLoader":
398398
PyFunceble.storage.HTTP_CODES = Box(
399399
config["http_codes"],
400400
)
401-
PyFunceble.storage.COLLECTION = Box(config["collection"])
401+
if "collection" in config:
402+
PyFunceble.storage.COLLECTION = Box(config["collection"])
402403
PyFunceble.storage.LINKS = Box(config["links"])
403404

404405
return self

0 commit comments

Comments
 (0)