Skip to content

Commit 1e1da0a

Browse files
committed
Fix bugs
1 parent abc1aac commit 1e1da0a

File tree

2 files changed

+10
-5
lines changed
  • packages/tencent-cloud-sdk-serverless-functions/tencent/cloud/serverless/functions

2 files changed

+10
-5
lines changed

packages/tencent-cloud-sdk-serverless-functions/tencent/cloud/serverless/functions/client.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -749,9 +749,14 @@ async def wait_handler_async():
749749

750750
break
751751
except errors.errors.ActionError as error:
752-
if error.error_id != 'ResourceNotFound.FunctionName':
753-
raise
752+
# Cannot tell the difference between `ResourceNotFound.Function`
753+
# and `ResourceNotFound.FunctionName`
754754

755+
if (error.error_id != 'ResourceNotFound.FunctionName' and
756+
error.error_id != 'ResourceNotFound.Function'
757+
):
758+
raise
759+
755760
await asyncio.sleep(1)
756761

757762
return waitable.OperationWaitable(
@@ -2613,8 +2618,8 @@ async def wait_handler_async() -> int:
26132618
layer_name, layer_version)
26142619

26152620
break
2616-
except errors.errors.ActionError as action_error:
2617-
if action_error.error_id != 'ResourceNotFound.LayerVersion':
2621+
except errors.errors.ActionError as error:
2622+
if error.error_id != 'ResourceNotFound.LayerVersion':
26182623
raise
26192624

26202625
await asyncio.sleep(1)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def read_readme_content() -> str:
3535

3636
setuptools.setup(
3737
name = 'tencent-cloud-sdk',
38-
version = '0.1.6',
38+
version = '0.1.7',
3939
keywords = 'tencent-cloud sdk-python',
4040
license = 'MIT License',
4141
author = 'Tencent Cloud',

0 commit comments

Comments
 (0)