【发布时间】:2011-06-27 15:16:43
【问题描述】:
我尝试使用此代码c.setopt(pycurl.URL, link) 设置网址,但出现以下异常
File "/home/sultan/Repository/Django/monitor/app/thread/utils.py", line 164, in perform
self.proxy_request.setopt(pycurl.URL, u'%s' % unicode(link))
TypeError: invalid arguments to setopt
我的代码有什么问题?
苏丹
【问题讨论】:
-
您传递给 c.setopt 的链接参数类型是否正确?