From 9489730a44061dad23ae782cc18ce2450096482a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=AF=E5=A4=A7=E4=BE=A0?= Date: Thu, 18 Sep 2025 16:58:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=20u115=E5=88=B7=E6=96=B0access=5Ftoken?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E4=BC=9A=E4=BA=A7=E7=94=9FNoneType=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit glitchtip#49549 --- app/modules/filemanager/storages/u115.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/modules/filemanager/storages/u115.py b/app/modules/filemanager/storages/u115.py index f4591e33..844b903b 100644 --- a/app/modules/filemanager/storages/u115.py +++ b/app/modules/filemanager/storages/u115.py @@ -91,6 +91,8 @@ class U115Pan(StorageBase, metaclass=WeakSingleton): "refresh_time": int(time.time()), **tokens }) + else: + return None access_token = tokens.get("access_token") if access_token: self.session.headers.update({"Authorization": f"Bearer {access_token}"})