From 4f0db03374978cd97c581c876cea6d7ff5f1ad0d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 29 Sep 2019 20:45:19 +0100 Subject: [PATCH] Fix indentation --- content.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/content.py b/content.py index 56a92bfa9..cd084326c 100644 --- a/content.py +++ b/content.py @@ -285,18 +285,18 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \ print('Loading emoji lookup') if not os.path.isfile(baseDir+'/emoji/emoji.json'): copyfile(baseDir+'/emoji/default_emoji.json',baseDir+'/emoji/emoji.json') - emojiDictCtr=0 - while not emojiDict and emojiDictCtr<4: - if emojiDictCtr>0: - print('Retry emoji load '+baseDir+'/emoji/emoji.json') - try: - with open(baseDir+'/emoji/emoji.json', 'r') as fp: - emojiDict=commentjson.load(fp) - break - except Exception as e: - print('Failed to load emoji: '+baseDir+'/emoji/emoji.json '+e) - time.sleep(1) - emojiDictCtr+=1 + emojiDictCtr=0 + while not emojiDict and emojiDictCtr<4: + if emojiDictCtr>0: + print('Retry emoji load '+baseDir+'/emoji/emoji.json') + try: + with open(baseDir+'/emoji/emoji.json', 'r') as fp: + emojiDict=commentjson.load(fp) + break + except Exception as e: + print('Failed to load emoji: '+baseDir+'/emoji/emoji.json '+e) + time.sleep(1) + emojiDictCtr+=1 addEmoji(baseDir,wordStr,httpPrefix,originalDomain,replaceEmoji,hashtags,emojiDict)