mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-30 17:43:44 +00:00
Better test for news avatar
This commit is contained in:
1 parent
326e50ef0e
commit
d096b04c04
1 file changed
+2
-3
@@ -1025,9 +1025,8 @@ def setNewsAvatar(baseDir: str, name: str,
|
||||
"""Sets the avatar for the news account
|
||||
"""
|
||||
nickname = 'news'
|
||||
if name != 'default':
|
||||
newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png'
|
||||
else:
|
||||
newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png'
|
||||
if not os.path.isfile(newFilename):
|
||||
newFilename = baseDir + '/img/icons/avatar_news.png'
|
||||
if not os.path.isfile(newFilename):
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user