Skip to content

Commit a980041

Browse files
andyshinnCopilot
andcommitted
check logo existence
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3c4e202 commit a980041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bridger/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ async def get_displaynames_all(request):
6767
return web.json_response(displaynames)
6868

6969

70-
@routes.get("/logo/logo.png")
71-
async def get_logo(request):
7270
logo_path = os.path.join(os.path.dirname(__file__), "../logo/logo.png")
71+
if not os.path.exists(logo_path):
72+
return web.Response(status=404, text="Logo not found")
7373
return web.FileResponse(logo_path)
7474

7575

0 commit comments

Comments
 (0)