Exception handling

main
Bob Mottram 2020-02-21 18:13:09 +00:00
parent 691b14a3e7
commit 4173ea679e
1 changed files with 6 additions and 3 deletions

View File

@ -66,9 +66,12 @@ def replaceEmojiFromTags(content: str,tag: [],messageType: str) -> str:
if iconName[0].isdigit():
if '.' in iconName and '-' not in iconName:
iconName=iconName.split('.')[0]
try:
content= \
content.replace(tagItem['name'], \
chr(int("0x"+iconName,16)))
except:
pass
htmlClass='emoji'
if messageType=='post header':
htmlClass='emojiheader'