This commit is contained in:
2020-09-03 18:07:05 +08:00
parent ba28a1a25b
commit f3b4756aa9
+1 -1
View File
@@ -284,7 +284,7 @@ class Redis extends Component
} else { } else {
$data = $this->proxy()->{$name}(...$arguments); $data = $this->proxy()->{$name}(...$arguments);
} }
} catch (\Throwable $exception) { } catch (RedisConnectException|\Throwable $exception) {
if ($exception instanceof RedisConnectException) { if ($exception instanceof RedisConnectException) {
throw new Exception($exception->getMessage()); throw new Exception($exception->getMessage());
} }