From ff7053e1b36a08682cec3132c614794a4ffd6a46 Mon Sep 17 00:00:00 2001 From: Dico Date: Sat, 19 Jul 2014 05:02:09 +0200 Subject: [PATCH] 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 --- helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers.py b/helpers.py index dad1ced..de6aea5 100644 --- a/helpers.py +++ b/helpers.py @@ -131,8 +131,8 @@ def save_json_file(filename, obj): filename is the path + name of the file. """ try: - with open(filename) as obj: - obj.write(json_dumps(obj)) + with open(filename) as fyle: + fyle.write(json_dumps(obj)) except Exception, e: error("Failed to write to %s: %s" % (filename, e))