What steps will reproduce the problem?
any error in urllib2.urlopen (DNS, etc.)
What is the expected output? What do you see instead?
expect empty data, not error
where to handle exception? in pywapi x outside
What version of the product are you using? On what operating system?
version 0.22
Please provide any additional information below.
old code:
handler = urllib2.urlopen(url)
new code:
try: handler = urllib2.urlopen(url)
except urllib2.URLError: return {}
or:
try: handler = urllib2.urlopen(url)
except: return {}
Original issue reported on code.google.com by jan.no...@topinfo.cz on 7 Feb 2011 at 9:30
Original issue reported on code.google.com by
jan.no...@topinfo.cz
on 7 Feb 2011 at 9:30