Commit 62a7a949 authored by Vincent Stehlé's avatar Vincent Stehlé
Browse files handle missing keys in md generation

We can stress the markdown generation code a bit more now that we can
re-read previously generated markdown result. Make markdown generation more
robust to missing keys to avoid exceptions.

Signed-off-by: Vincent Stehlé's avatarVincent Stehlé <>
parent 98a90d2c
......@@ -226,7 +226,8 @@ def dict_2_md(input_list, file):
for x in input_list:
test_string = "|"
for y in k:
test_string += (x[y] + "|")
v = x[y] if y in x else ''
test_string += v + "|"
file.write(test_string + '\n')
# seprate table from other items in MD
Supports Markdown
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