Merge branch 'main' of gitlab.com:bashrc2/epicyon

merge-requests/30/head
Bob Mottram 2021-11-01 12:12:45 +00:00
commit eea5479b14
2 changed files with 17 additions and 4 deletions

View File

@ -272,8 +272,11 @@ 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
else:
# sequence of codes
@ -285,8 +288,11 @@ 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
if iconCodeSequence:
content = content.replace(tagItem['name'],

View File

@ -0,0 +1,7 @@
#!/bin/bash
journalctl -u epicyon | grep 'EX: ' > .exceptions.txt
if [ ! -f .exceptions.txt ]; then
echo 'No exceptions'
else
cat .exceptions.txt
fi