From cc8eb67155cf0acacbfeb3bea08b494995b19020 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 14 Jul 2026 13:17:56 +0800 Subject: [PATCH] bugfix --- ahserver/filedownload.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ahserver/filedownload.py b/ahserver/filedownload.py index a3e7a90..7633062 100644 --- a/ahserver/filedownload.py +++ b/ahserver/filedownload.py @@ -41,6 +41,12 @@ async def file_download(request, filepath): async def path_download(request, params_kw, *params, **kw): path = params_kw.get('path') + + if path is None: + if not params: + raise Exception(f'not path found') + path = params.join('/') + download = False if params_kw.get('download'): download = True