From ab6763f578c097a69151f49baf8547a72115396b Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 23 Dec 2017 21:37:21 -0500 Subject: [PATCH] Indent mistake --- src/utils/utils.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/utils/utils.py b/src/utils/utils.py index fb7b988..3a08ad7 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -39,17 +39,17 @@ except FileNotFoundError: def setdefault(filename, default=None, json=False): if json: - try: - with open(filename, 'rb') as infile: - print(f'LOADED : {filename}') - return jsn.load(infile) + try: + with open(filename, 'rb') as infile: + print(f'LOADED : {filename}') + return jsn.load(infile) - except FileNotFoundError: - with open(filename, 'wb+') as iofile: - print(f'FILE NOT FOUND : {filename} created and loaded with default values') - jsn.dump(default, iofile) - iofile.seek(0) - return jsn.load(iofile) + except FileNotFoundError: + with open(filename, 'wb+') as iofile: + print(f'FILE NOT FOUND : {filename} created and loaded with default values') + jsn.dump(default, iofile) + iofile.seek(0) + return jsn.load(iofile) else: try: with open(filename, 'rb') as infile: