Skip to content

Commit db888cf

Browse files
committed
Remove unneeded check
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent e78894c commit db888cf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/satosa/yaml.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ def _constructor_envfile_variables(loader, node):
3232
"""
3333
raw_value = loader.construct_scalar(node)
3434
filepath = os.environ.get(raw_value)
35-
if filepath is None:
36-
msg = "Cannot construct value from {node}: {path}".format(
37-
node=node, path=filepath
38-
)
39-
raise YAMLError(msg)
40-
4135
try:
4236
with open(filepath, "r") as fd:
4337
new_value = fd.read()

0 commit comments

Comments
 (0)