-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels