Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

channel_id 类型异常 #7

Open
sqlwwx opened this issue Nov 10, 2014 · 0 comments
Open

channel_id 类型异常 #7

sqlwwx opened this issue Nov 10, 2014 · 0 comments

Comments

@sqlwwx
Copy link

sqlwwx commented Nov 10, 2014

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant