From 1458b0158ff1f41601c21705440cceac75dcd9cd Mon Sep 17 00:00:00 2001 From: Thomas Carmet Date: Wed, 19 Jul 2023 21:13:55 +0000 Subject: [PATCH] Exclude unknown vars from settings --- bert_e/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bert_e/settings.py b/bert_e/settings.py index 2263e835..3c99cb7f 100644 --- a/bert_e/settings.py +++ b/bert_e/settings.py @@ -4,7 +4,8 @@ import logging import os from marshmallow import ( - Schema, fields, post_load, pre_load, validates_schema, ValidationError) + Schema, fields, post_load, pre_load, validates_schema, ValidationError, + EXCLUDE) from bert_e.exceptions import (IncorrectSettingsFile, SettingsFileNotFound, @@ -122,6 +123,9 @@ def deserialize(self, value, attr=None, data=None, **kwargs): class SettingsSchema(Schema): + class Meta: + unknown = EXCLUDE + # Settings defined in config files always_create_integration_pull_requests = fields.Bool( required=False, load_default=True)