forked from indymedia/epicyon
Exception handling
parent
691b14a3e7
commit
4173ea679e
|
@ -66,9 +66,12 @@ def replaceEmojiFromTags(content: str,tag: [],messageType: str) -> str:
|
||||||
if iconName[0].isdigit():
|
if iconName[0].isdigit():
|
||||||
if '.' in iconName and '-' not in iconName:
|
if '.' in iconName and '-' not in iconName:
|
||||||
iconName=iconName.split('.')[0]
|
iconName=iconName.split('.')[0]
|
||||||
content= \
|
try:
|
||||||
content.replace(tagItem['name'], \
|
content= \
|
||||||
chr(int("0x"+iconName,16)))
|
content.replace(tagItem['name'], \
|
||||||
|
chr(int("0x"+iconName,16)))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
htmlClass='emoji'
|
htmlClass='emoji'
|
||||||
if messageType=='post header':
|
if messageType=='post header':
|
||||||
htmlClass='emojiheader'
|
htmlClass='emojiheader'
|
||||||
|
|
Loading…
Reference in New Issue