Skip to content

Fix exception log noise in Python 3.13 #742

@abbasyadollahi

Description

@abbasyadollahi

Running into client exceptions causes additional log noise when using aerospike 16.0.0 and Python 3.13.
Seems like this issue was brought up in #629 but hasn't yet been addressed.

Small example below where the first line is the extra log noise:

Exception ignored in PyObject_HasAttrString(); consider using PyObject_HasAttrStringWithError(), PyObject_GetOptionalAttrString() or PyObject_GetAttrString():
Traceback (most recent call last):
  File "/var/task/src/demo.py", line 173, in process_something
    aerospike_client.operate(key, operations, meta={"ttl": int(ttl.total_seconds())})
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
exception.TimeoutError: (9, 'Client timeout: socket=30000 total=1000 iterations=1 lastNode=127.0.0.0:3000', 'src/main/aerospike/as_command.c', 875, True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions