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