Skip to content

channel_id 类型异常 #7

Description

@sqlwwx

Traceback (most recent call last):
File "sample.py", line 103, in
test_queryBindList()
File "sample.py", line 53, in test_queryBindList
ret = c.queryBindList(user_id, optional)
File "../Channel.py", line 181, in queryBindList
return self._commonProcess(arrArgs)
File "../Channel.py", line 493, in _commonProcess
ret = self._baseControl(paramOpt)
File "../Channel.py", line 465, in _baseControl
url += resource
TypeError: cannot concatenate 'str' and 'int' objects
Channel.py
464 url = 'http://' + host + '/rest/2.0/' + Channel.PRODUCT + '/'
465 url += resource
改为
464 url = 'http://{}/rest/2.0/{}/{}'.format(host,Channel.PRODUCT,resource)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions