加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

python – Boto3 InvalidParameterException

发布时间:2020-12-16 22:41:54 所属栏目:Python 来源:网络整理
导读:我有一些调用AWS的Rekognition服务的代码.有时会抛出此异常: An error occurred (InvalidParameterException) when calling the DetectLabels operation: Request has Invalid Parameters 但是,我无法在文档或代码中的任何位置找到InvalidParameterExceptio

我有一些调用AWS的Rekognition服务的代码.有时会抛出此异常:

An error occurred (InvalidParameterException) when calling the DetectLabels operation: Request has Invalid Parameters

但是,我无法在文档或代码中的任何位置找到InvalidParameterException,因此我无法在发生这种情况时编写特定的处理程序.有谁知道该例外的库模块是什么?

最佳答案
我在boto/cognito/identity/exceptions.py找到它:

from boto.exception import BotoServerError

class InvalidParameterException(BotoServerError):
    pass

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读