Omnibus commited on
Commit
2ad0bc2
·
1 Parent(s): 0e4c325

Update mychain.py

Browse files
Files changed (1) hide show
  1. mychain.py +1 -0
mychain.py CHANGED
@@ -48,6 +48,7 @@ class Blockchain:
48
  json_object = json.dumps(self.chain, indent=4)
49
  with open("tmp.json", "w") as outfile:
50
  outfile.write(json_object)
 
51
  try:
52
  api.upload_file(
53
  path_or_fileobj="tmp.json",
 
48
  json_object = json.dumps(self.chain, indent=4)
49
  with open("tmp.json", "w") as outfile:
50
  outfile.write(json_object)
51
+ outfile.close()
52
  try:
53
  api.upload_file(
54
  path_or_fileobj="tmp.json",