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: catch/log oserror (#2131)
Akshay Agrawal2719fd8fe5eb
diff --git a/marimo/_server/file_manager.py b/marimo/_server/file_manager.pyindex 533133f830..2e94595859 100644--- a/marimo/_server/file_manager.py+++ b/marimo/_server/file_manager.py@@ -298,5 +298,13 @@ def read_css_file(css_file: str, filename: Optional[str]) -> Optional[str]:if not os.path.exists(filepath):LOGGER.error("CSS file %s does not exist", css_file)return None- with open(filepath) as f:- return f.read()+ try:+ with open(filepath) as f:+ return f.read()+ except OSError as e:+ LOGGER.warning(+ "Failed to open custom CSS file %s for reading: %s",+ filepath,+ str(e),+ )+ return None