Avoid infinite loop

main2
Bob Mottram 2019-10-09 19:39:15 +01:00
parent 9f5bf60af0
commit dc135f49c0
1 changed files with 2 additions and 0 deletions

View File

@ -1637,6 +1637,8 @@ def addEmojiToDisplayName(baseDir: str,httpPrefix: str, \
# remove any stray emoji
while ':' in displayName:
if '://' in displayName:
break
emojiStr=displayName.split(':')[1]
displayName=displayName.replace(':'+emojiStr+':','').strip()
print('TAG: displayName after tags 3: '+displayName)