谢谢Devil指出问题!

我猜测错误原因是download_icons是以独立进程方式运行,主进程设置为使用代理后,独立进程没能读取配置。我已经改过代码,将两个进程合并。不过学校里断网了,后天才能传到github。请Devil到时再测试一下好吗?

Homer

2010/7/24, Devil Wang <[email protected]>:
> *Hi all,
>
> when i was download icons from APP, it reported such error.
>
> it seems that the connection time out.
> It could be the firewall of my company block this http request.
>
> So, maybe , it was not a bug. or we can refine the code to handle this kinds
> of exception.
>
>
> *  File "/usr/lib/python2.6/site-packages/ailurus/download_icons.py", line
> 56, in download_thread
>     in_file = urllib2.urlopen(self.url)
>   File "/usr/lib/python2.6/urllib2.py", line 124, in urlopen
>     return _opener.open(url, data, timeout)
>   File "/usr/lib/python2.6/urllib2.py", line 389, in open
>     response = self._open(req, data)
>   File "/usr/lib/python2.6/urllib2.py", line 407, in _open
>     '_open', req)
>   File "/usr/lib/python2.6/urllib2.py", line 367, in _call_chain
>     result = func(*args)
>   File "/usr/lib/python2.6/urllib2.py", line 1146, in http_open
>     return self.do_open(httplib.HTTPConnection, req)
>   File "/usr/lib/python2.6/urllib2.py", line 1121, in do_open
>     raise URLError(err)
> <class 'urllib2.URLError'> : <urlopen error [Errno 110] Connection timed
> out>
> ('fedora', '13', 'Goddard')
> ('Linux', 'Devil', '2.6.33.6-147.fc13.i686', '#1 SMP Tue Jul 6 22:30:55 UTC
> 2010', 'i686')
> Ailurus version: 10.07.4.1
>
> --
> Thanks & Regards
>
> Linux Developer : Devil Wang
>

_______________________________________________
Mailing list: https://launchpad.net/~ailurus
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ailurus
More help   : https://help.launchpad.net/ListHelp

回复