From 38329fc8d74a3103b3a7dc31f74ae5e8e66c6e11 Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 23 Dec 2017 21:39:21 -0500 Subject: [PATCH] Indents were messed up from the paste --- src/utils/utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/utils.py b/src/utils/utils.py index 3a08ad7..4c865b0 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -41,15 +41,15 @@ def setdefault(filename, default=None, json=False): if json: try: with open(filename, 'rb') as infile: - print(f'LOADED : {filename}') - return jsn.load(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) + print(f'FILE NOT FOUND : {filename} created and loaded with default values') + jsn.dump(default, iofile) iofile.seek(0) - return jsn.load(iofile) + return jsn.load(iofile) else: try: with open(filename, 'rb') as infile: