Skip to content

Commit 1458b01

Browse files
committed
Exclude unknown vars from settings
1 parent 79084da commit 1458b01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bert_e/settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import logging
55
import os
66
from marshmallow import (
7-
Schema, fields, post_load, pre_load, validates_schema, ValidationError)
7+
Schema, fields, post_load, pre_load, validates_schema, ValidationError,
8+
EXCLUDE)
89

910
from bert_e.exceptions import (IncorrectSettingsFile,
1011
SettingsFileNotFound,
@@ -122,6 +123,9 @@ def deserialize(self, value, attr=None, data=None, **kwargs):
122123

123124

124125
class SettingsSchema(Schema):
126+
class Meta:
127+
unknown = EXCLUDE
128+
125129
# Settings defined in config files
126130
always_create_integration_pull_requests = fields.Bool(
127131
required=False, load_default=True)

0 commit comments

Comments
 (0)