We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49036f8 commit 9fc03faCopy full SHA for 9fc03fa
1 file changed
astrbot/dashboard/routes/file.py
@@ -1,6 +1,5 @@
1
from quart import abort, send_file
2
3
-from astrbot import logger
4
from astrbot.core import file_token_service
5
6
from .route import Route, RouteContext
@@ -21,6 +20,5 @@ async def serve_file(self, file_token: str):
21
20
try:
22
file_path = await file_token_service.handle_file(file_token)
23
return await send_file(file_path)
24
- except (FileNotFoundError, KeyError) as e:
25
- logger.warning(str(e))
+ except (FileNotFoundError, KeyError):
26
return abort(404)
0 commit comments