Commit 464d0417 authored by Matthijs Mekking's avatar Matthijs Mekking 🏡

Fix digdelv test

The yamlget.py file was changed in !3311 as part of making the
python code pylint and flake8 compliant.  This omitted setting
'item' to 'item[key]' which caused the digdelv yaml tests to fail.

Also, the pretty printing is not really necessary, so remove
the "if key not in item; print error" logic.
parent 2e7bfad2
......@@ -24,7 +24,7 @@ with open(sys.argv[1], "r") as f:
key = int(key)
except ValueError:
pass
if key not in item:
print('error: index not found')
sys.exit(1)
item = item[key]
print(item)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment