More descriptive exception

merge-requests/30/head
Bob Mottram 2021-11-01 11:35:15 +00:00
parent 9314812e88
commit 08e7ed1684
1 changed files with 6 additions and 4 deletions

View File

@ -272,8 +272,9 @@ def replaceEmojiFromTags(content: str, tag: [], messageType: str) -> str:
content = content.replace(tagItem['name'],
replaceChar)
except BaseException:
print('EX: replaceEmojiFromTags name ' +
str(iconName) + ' ' +
print('EX: replaceEmojiFromTags ' +
'no conversion of ' +
str(iconName) + ' to chr ' +
tagItem['name'] + ' ' +
tagItem['icon']['url'])
pass
@ -287,8 +288,9 @@ def replaceEmojiFromTags(content: str, tag: [], messageType: str) -> str:
icode, 16))
except BaseException:
iconCodeSequence = ''
print('EX: replaceEmojiFromTags code ' +
str(icode) + ' ' +
print('EX: replaceEmojiFromTags ' +
'no conversion of ' +
str(icode) + ' to chr ' +
tagItem['name'] + ' ' +
tagItem['icon']['url'])
break