From f3b4756aa9d7ca6ea023e5b33a451ee94adde574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 3 Sep 2020 18:07:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/Cache/Redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Cache/Redis.php b/system/Cache/Redis.php index 21e91990..736c582a 100644 --- a/system/Cache/Redis.php +++ b/system/Cache/Redis.php @@ -284,7 +284,7 @@ class Redis extends Component } else { $data = $this->proxy()->{$name}(...$arguments); } - } catch (\Throwable $exception) { + } catch (RedisConnectException|\Throwable $exception) { if ($exception instanceof RedisConnectException) { throw new Exception($exception->getMessage()); }