mirror of https://gitlab.com/bashrc2/epicyon
Type check
parent
5c18b3b50f
commit
1a66c39656
|
@ -147,8 +147,10 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
|
|||
title = speakerJson['notify']['title']
|
||||
soundsDir = 'theme/default/sounds'
|
||||
if speakerJson['notify'].get('theme'):
|
||||
if isinstance(speakerJson['notify']['theme'], str):
|
||||
soundsDir = \
|
||||
'theme/' + speakerJson['notify']['theme'] + '/sounds'
|
||||
'theme/' + \
|
||||
speakerJson['notify']['theme'] + '/sounds'
|
||||
if not os.path.isdir(soundsDir):
|
||||
soundsDir = 'theme/default/sounds'
|
||||
if speakerJson['notify']['dm'] != prevDM:
|
||||
|
|
Loading…
Reference in New Issue