mirror of https://gitlab.com/bashrc2/epicyon
Check that directory exists
parent
97119e05c5
commit
b889c8dfdd
1
theme.py
1
theme.py
|
@ -615,6 +615,7 @@ def setTheme(baseDir: str, name: str, domain: str) -> bool:
|
|||
# set the news avatar
|
||||
newsAvatarThemeFilename = \
|
||||
baseDir + '/theme/' + name + '/icons/avatar_news.png'
|
||||
if os.path.isdir(baseDir + '/accounts/news@' + domain):
|
||||
if os.path.isfile(newsAvatarThemeFilename):
|
||||
newsAvatarFilename = \
|
||||
baseDir + '/accounts/news@' + domain + '/avatar.png'
|
||||
|
|
Loading…
Reference in New Issue