Fixed shecode. I knowo that 'file' is the correct spelling, but that does weird stuff and turns blue so just leave it this works and sheeps code doesnt <3

This commit is contained in:
Dico
2014-07-19 05:02:09 +02:00
parent 6ae2f4971a
commit ff7053e1b3

View File

@@ -131,8 +131,8 @@ def save_json_file(filename, obj):
filename is the path + name of the file. filename is the path + name of the file.
""" """
try: try:
with open(filename) as obj: with open(filename) as fyle:
obj.write(json_dumps(obj)) fyle.write(json_dumps(obj))
except Exception, e: except Exception, e:
error("Failed to write to %s: %s" % (filename, e)) error("Failed to write to %s: %s" % (filename, e))