"src/routes/vscode:/vscode.git/clone" did not exist on "8fd7bc342d142ff673e96bdf6bc87e43f591c0b8"
Unverified Commit 9b839e5c authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #2927 from arkohut/tolerant-no-write-permission-for-static-dir

fix: tolerant no write permission for copy favicon to static dir
parents 063e1ee4 d3558fdb
......@@ -306,7 +306,10 @@ STATIC_DIR = Path(os.getenv("STATIC_DIR", BACKEND_DIR / "static")).resolve()
frontend_favicon = FRONTEND_BUILD_DIR / "favicon.png"
if frontend_favicon.exists():
try:
shutil.copyfile(frontend_favicon, STATIC_DIR / "favicon.png")
except PermissionError:
logging.error(f"No write permission to {STATIC_DIR / 'favicon.png'}")
else:
logging.warning(f"Frontend favicon not found at {frontend_favicon}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment