This commit is contained in:
2020-09-03 18:07:45 +08:00
parent f3b4756aa9
commit 72238e8a5c
+2 -3
View File
@@ -284,10 +284,9 @@ class Redis extends Component
} else { } else {
$data = $this->proxy()->{$name}(...$arguments); $data = $this->proxy()->{$name}(...$arguments);
} }
} catch (RedisConnectException|\Throwable $exception) { } catch (RedisConnectException $exception) {
if ($exception instanceof RedisConnectException) {
throw new Exception($exception->getMessage()); throw new Exception($exception->getMessage());
} } catch (\Throwable $exception) {
$this->error(print_r($exception, true)); $this->error(print_r($exception, true));
$data = false; $data = false;
} finally { } finally {