From cd713e68a86884b1e4b544b34b7cb77a7edbdedf Mon Sep 17 00:00:00 2001 From: yuan1994 Date: Wed, 19 Jul 2017 14:19:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dphp5.x=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=8D=95=E8=8E=B7=E5=BC=82=E5=B8=B8=E5=A4=B1=E8=B4=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/CrawlerTrait.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CrawlerTrait.php b/src/CrawlerTrait.php index f15e513..7d694ea 100644 --- a/src/CrawlerTrait.php +++ b/src/CrawlerTrait.php @@ -14,7 +14,6 @@ use think\Config; use think\Cookie; use think\Error; -use think\Exception; use think\helper\Arr; use think\helper\Str; use think\Request; @@ -79,7 +78,7 @@ public function call($method, $uri, $parameters = [], $cookies = [], $files = [] ); try { $response = App::run($request); - } catch (Exception $e) { + } catch (\Exception $e) { $response = Error::getExceptionHandler()->render($e); } catch (\Throwable $e) { $response = Error::getExceptionHandler()->render($e);