This commit is contained in:
Classic298 2026-10-05 19:46:34 +02:00 • committed by GitHub
commit 757433bcfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,7 +98,7 @@ async def import_legacy_config_json():
STATIC_DIR = Path(os.getenv('STATIC_DIR', OPEN_WEBUI_DIR / 'static')).resolve()
try:
if STATIC_DIR.exists():
if STATIC_DIR.exists() and (FRONTEND_BUILD_DIR / 'static').is_dir():
for item in STATIC_DIR.iterdir():
if item.is_file() or item.is_symlink():
try: