Skip to content
Snippets Groups Projects
Commit 1f42d0aa authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

cleanup

parent 0b29a683
No related branches found
No related tags found
No related merge requests found
Pipeline #2368 passed with stage
in 27 seconds
......@@ -23,8 +23,13 @@ if __name__ == '__main__':
except OSError:
pass
with open(src_md, 'rb') as labin, open('src/'+sys.argv[1]+'.json', 'rb') as datin:
data = json.load(datin)
with open(src_md, 'rb') as labin:
if os.path.exists('src/'+sys.argv[1]+'.json'):
with open('src/' + sys.argv[1] + '.json', 'rb') as datin:
data = json.load(datin)
else:
data = [{}]
lab = labin.read().decode('utf8')
for ex_no, d in enumerate(data, start=1):
......
[
{}
]
\ No newline at end of file
[
{}
]
\ No newline at end of file
[
{
}
]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment