More logging of exceptions

main
Bob Mottram 2021-11-01 10:36:59 +00:00
parent b464d7b699
commit 9314812e88
1 changed files with 6 additions and 2 deletions

View File

@ -273,7 +273,9 @@ def replaceEmojiFromTags(content: str, tag: [], messageType: str) -> str:
replaceChar) replaceChar)
except BaseException: except BaseException:
print('EX: replaceEmojiFromTags name ' + print('EX: replaceEmojiFromTags name ' +
str(iconName)) str(iconName) + ' ' +
tagItem['name'] + ' ' +
tagItem['icon']['url'])
pass pass
else: else:
# sequence of codes # sequence of codes
@ -286,7 +288,9 @@ def replaceEmojiFromTags(content: str, tag: [], messageType: str) -> str:
except BaseException: except BaseException:
iconCodeSequence = '' iconCodeSequence = ''
print('EX: replaceEmojiFromTags code ' + print('EX: replaceEmojiFromTags code ' +
str(icode)) str(icode) + ' ' +
tagItem['name'] + ' ' +
tagItem['icon']['url'])
break break
if iconCodeSequence: if iconCodeSequence:
content = content.replace(tagItem['name'], content = content.replace(tagItem['name'],