From 32330fa8b2a16bcd23c08ae2e8d0516aa63f56d0 Mon Sep 17 00:00:00 2001 From: shmilylty Date: Sun, 25 Aug 2019 17:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=9816=20https:?= =?UTF-8?q?//github.com/shmilylty/OneForAll/issues/16?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oneforall/common/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oneforall/common/request.py b/oneforall/common/request.py index c6e3d4c..59bc05b 100644 --- a/oneforall/common/request.py +++ b/oneforall/common/request.py @@ -81,7 +81,7 @@ async def fetch(session, url, semaphore): def request_callback(future, index, datas): try: result = future.result() - except Exception as e: + except BaseException as e: logger.log('DEBUG', e.args) datas[index]['reason'] = str(e.args) datas[index]['valid'] = 0