Skip to content

sco must be an instance of SCO #9

@andhwynm

Description

@andhwynm

My TLS connection code encountered an error.(sco must be an instance of SCO)

conn_info = '%s(%s)' % (HOST, PORT)
cd = CD()
cd.SSLCipherSpec = TLS_CIPHER
sco=SCO()
sco.KeyRepository = KEY_REPOSITORY
queue_manager = mqqmgr.connect(QUEUE_MANAGER, CHANNEL, conn_info, USER_ID, API_KEY, cd=cd, sco=sco)

Commenting out the following code resolved the error.

ibmmq.mqqmgr.py L160-L162
if sco:
if not isinstance(sco, SCO):
raise TypeError("sco must be an instance of SCO")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions