Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
d3558fdb
Commit
d3558fdb
authored
Jun 08, 2024
by
arkohut
Browse files
fix: tolerant no write permission for copy favicon to static dir
parent
a8d80f93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
backend/config.py
backend/config.py
+4
-1
No files found.
backend/config.py
View file @
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
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment