mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 21:36:48 +08:00
🐛 fix(main.py): fix condition to setup static files only if static_files_dir is not None
This commit is contained in:
@ -81,7 +81,7 @@ def setup_app(
|
||||
if not backend_only and (not static_files_dir or not static_files_dir.exists()):
|
||||
raise RuntimeError(f"Static files directory {static_files_dir} does not exist.")
|
||||
app = create_app()
|
||||
if not backend_only:
|
||||
if not backend_only and static_files_dir is not None:
|
||||
setup_static_files(app, static_files_dir)
|
||||
return app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user