Fixed error if roomsDirPath is None
This commit is contained in:
parent
50b810a75f
commit
22759f5bec
@ -41,7 +41,7 @@ class SyncFactory(Factory):
|
|||||||
print(getMessage("no-salt-notification").format(salt))
|
print(getMessage("no-salt-notification").format(salt))
|
||||||
self._salt = salt
|
self._salt = salt
|
||||||
self._motdFilePath = motdFilePath
|
self._motdFilePath = motdFilePath
|
||||||
self._roomsDirPath = roomsDirPath if os.path.isdir(roomsDirPath) else None
|
self._roomsDirPath = roomsDirPath if roomsDirPath is not None and os.path.isdir(roomsDirPath) else None
|
||||||
self.disableReady = disableReady
|
self.disableReady = disableReady
|
||||||
self.disableChat = disableChat
|
self.disableChat = disableChat
|
||||||
self.maxChatMessageLength = maxChatMessageLength if maxChatMessageLength is not None else constants.MAX_CHAT_MESSAGE_LENGTH
|
self.maxChatMessageLength = maxChatMessageLength if maxChatMessageLength is not None else constants.MAX_CHAT_MESSAGE_LENGTH
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user