Skip to content

Commit 6eccf86

Browse files
committed
fix: non-root container issue
1 parent 5e78a5c commit 6eccf86

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/open_webui/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,10 @@ def oidc_oauth_register(client):
593593
(FRONTEND_BUILD_DIR / "static")
594594
)
595595
target_path.parent.mkdir(parents=True, exist_ok=True)
596-
shutil.copyfile(file_path, target_path)
596+
try:
597+
shutil.copyfile(file_path, target_path)
598+
except Exception as e:
599+
logging.error(f"An error occurred: {e}")
597600

598601
frontend_favicon = FRONTEND_BUILD_DIR / "static" / "favicon.png"
599602

0 commit comments

Comments
 (0)