diff --git a/theme.py b/theme.py index 04e33ee6..53e78111 100644 --- a/theme.py +++ b/theme.py @@ -1025,7 +1025,10 @@ def setNewsAvatar(baseDir: str, name: str, """Sets the avatar for the news account """ nickname = 'news' - newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png' + if name != 'default': + newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png' + else: + newFilename = baseDir + '/img/icons/avatar_news.png' if not os.path.isfile(newFilename): return avatarFilename = \