From 22759f5bec6890fbe24fb74226812202c8089c9e Mon Sep 17 00:00:00 2001 From: Assistant Date: Sat, 26 Jun 2021 19:25:08 +0200 Subject: [PATCH] Fixed error if roomsDirPath is None --- syncplay/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/server.py b/syncplay/server.py index fd6f954..bc9066d 100755 --- a/syncplay/server.py +++ b/syncplay/server.py @@ -41,7 +41,7 @@ class SyncFactory(Factory): print(getMessage("no-salt-notification").format(salt)) self._salt = salt 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.disableChat = disableChat self.maxChatMessageLength = maxChatMessageLength if maxChatMessageLength is not None else constants.MAX_CHAT_MESSAGE_LENGTH