Skip to content

[Python] object has no attribute 'message' #1443

@kboisits

Description

@kboisits

Getting an error:

  File "c:\env\Lib\site-packages\aws_cryptographic_material_providers\smithygenerated\aws_cryptography_keystore\deserialize.py", line 61, in _deserialize_create_key
    return _deserialize_error(input.error)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\env\Lib\site-packages\aws_cryptographic_material_providers\smithygenerated\aws_cryptography_keystore\deserialize.py", line 119, in _deserialize_error
    message=_dafny.string_of(error.ComAmazonawsDynamodb.message)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Error_TransactionCanceledException' object has no attribute 'message'. Did you mean: 'Message'?

After more debugging the result changes based on the type of error. Not sure the exact reason yet, but I am getting a Error_TransactionCanceledException which has a Message and CancellationReason instead of the message field that is used here:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions