Skip to content

Empty Json File #1484

Answered by cromewar
praxis-dev asked this question in Q&A
May 16, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello @vaporm
you have a typo here:

with open("compiled_code.json", "w") as files:
    json.dump(compiled_sol, file)

You are opening the file as "files" and then you use json.dump to "file" without "s" so the name have a mismatch.

Cheers.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@praxis-dev
Comment options

Answer selected by cromewar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants