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

Fix digdelv test

The 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:
if key not in item:
print('error: index not found')
item = item[key]
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