A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: handle os errors in listing files (#1792)
Akshay Agrawalb6cce607d0f0
diff --git a/marimo/_server/file_router.py b/marimo/_server/file_router.pyindex d981284b27..44c904d164 100644--- a/marimo/_server/file_router.py+++ b/marimo/_server/file_router.py@@ -198,7 +198,13 @@ class LazyListOfFilesAppFileRouter(AppFileRouter):) -> Optional[List[FileInfo]]:if depth > MAX_DEPTH:return None- entries = os.listdir(directory)++ try:+ entries = os.listdir(directory)+ except OSError as e:+ LOGGER.debug("OSError listing directory: %s", str(e))+ return None+files: List[FileInfo] = []folders: List[FileInfo] = []for entry in entries: