We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f1c89d + d322baa commit 5be3926Copy full SHA for 5be3926
services/core/Ambient/tests/test_ambient_agent.py
@@ -124,6 +124,7 @@
124
"test_ambient_data.json"
125
" variable app_key")
126
127
+pytestmark = [pytestmark_api, pytestmark_app, pytestmark_locs]
128
129
@pytest.fixture(scope="module")
130
def query_agent(request, volttron_instance):
volttron/platform/agent/utils.py
@@ -156,7 +156,10 @@ def load_config(config_path):
156
# Then if that fails we fallback to our modified json parser.
157
try:
158
with open(config_path) as f:
159
- return yaml.safe_load(f.read())
+ config = yaml.safe_load(f.read())
160
+ if config is None:
161
+ return {}
162
+ return config
163
except yaml.scanner.ScannerError as e:
164
165
0 commit comments