Spaces:
Runtime error
Runtime error
Update mychain.py
Browse files- 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",
|