diff --git a/backend/config.py b/backend/config.py index d7b892d8a..df52a4b69 100644 --- a/backend/config.py +++ b/backend/config.py @@ -308,8 +308,9 @@ 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'}") + except Exception as e: + logging.error(f"An error occurred: {e}") + else: logging.warning(f"Frontend favicon not found at {frontend_favicon}")