mirror of https://gitlab.com/bashrc2/epicyon
More descriptive exception
parent
9314812e88
commit
08e7ed1684
10
content.py
10
content.py
|
@ -272,8 +272,9 @@ def replaceEmojiFromTags(content: str, tag: [], messageType: str) -> str:
|
||||||
content = content.replace(tagItem['name'],
|
content = content.replace(tagItem['name'],
|
||||||
replaceChar)
|
replaceChar)
|
||||||
except BaseException:
|
except BaseException:
|
||||||
print('EX: replaceEmojiFromTags name ' +
|
print('EX: replaceEmojiFromTags ' +
|
||||||
str(iconName) + ' ' +
|
'no conversion of ' +
|
||||||
|
str(iconName) + ' to chr ' +
|
||||||
tagItem['name'] + ' ' +
|
tagItem['name'] + ' ' +
|
||||||
tagItem['icon']['url'])
|
tagItem['icon']['url'])
|
||||||
pass
|
pass
|
||||||
|
@ -287,8 +288,9 @@ def replaceEmojiFromTags(content: str, tag: [], messageType: str) -> str:
|
||||||
icode, 16))
|
icode, 16))
|
||||||
except BaseException:
|
except BaseException:
|
||||||
iconCodeSequence = ''
|
iconCodeSequence = ''
|
||||||
print('EX: replaceEmojiFromTags code ' +
|
print('EX: replaceEmojiFromTags ' +
|
||||||
str(icode) + ' ' +
|
'no conversion of ' +
|
||||||
|
str(icode) + ' to chr ' +
|
||||||
tagItem['name'] + ' ' +
|
tagItem['name'] + ' ' +
|
||||||
tagItem['icon']['url'])
|
tagItem['icon']['url'])
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue