diff --git a/src/engine/src/core/daos/FileSystemDAO.py b/src/engine/src/core/daos/FileSystemDAO.py index 3b235d4d..7ac4e720 100644 --- a/src/engine/src/core/daos/FileSystemDAO.py +++ b/src/engine/src/core/daos/FileSystemDAO.py @@ -15,9 +15,11 @@ def get(self, path: str): return result def write(self, path: str, contents): + contents = contents if contents != None else "" with open(path, "w") as file: file.write(contents) def writebin(self, path: str, contents): + contents = contents if contents != None else "" with open(path, "wb") as file: file.write(contents) \ No newline at end of file