Skip to content

Commit 9c0a493

Browse files
committed
BUGFIX:
- NPW, if a wrong yaml was passed
1 parent b66b4af commit 9c0a493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ def filter_element(element: dict) -> dict:
476476
else:
477477
return element
478478

479-
default = deepcopy(filter_element(self.locals.get(DEFAULT_TAG, {})))
480-
specific = deepcopy(filter_element(self.locals.get(server.node.name, self.locals).get(server.instance.name, {})))
479+
default = deepcopy(filter_element(self.locals.get(DEFAULT_TAG) or {}))
480+
specific = deepcopy(filter_element(self.locals.get(server.node.name, self.locals).get(server.instance.name) or {}))
481481
return default, specific
482482

483483
def get_config(self, server: Optional[Server] = None, *, plugin_name: Optional[str] = None,

0 commit comments

Comments
 (0)