From 51fc2cb6e94f783ccc18688adbda0a5d3e1f7aac Mon Sep 17 00:00:00 2001 From: Sefank <12670778+Sefank@users.noreply.github.com> Date: Wed, 26 Jun 2024 10:56:31 +0800 Subject: [PATCH] fix: unexpectedly return None when TencentCloudSDKException occurs with region breaker --- tencentcloud/common/abstract_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tencentcloud/common/abstract_client.py b/tencentcloud/common/abstract_client.py index 878be45d0..1094e3fb6 100644 --- a/tencentcloud/common/abstract_client.py +++ b/tencentcloud/common/abstract_client.py @@ -454,6 +454,7 @@ def _call_with_region_breaker(self, action, params, options=None, headers=None): self.circuit_breaker.after_requests(generation, True) else: self.circuit_breaker.after_requests(generation, False) + raise e def call_with_region_breaker(self, action, params, options=None, headers=None): resp = self._call_with_region_breaker(action, params, options, headers)