problem with my urllib.urlopen() function

Xell Zhang xellzhang at gmail.com
Thu Apr 5 01:40:38 EDT 2007


hello all,
I am a newbie in Python.
In my module, if I call urllib.urlopen() function like:
url = "http://www.google.com/"
source = urllib.urlopen(url)

Then in the output there will be an exception:
Exception exceptions.AttributeError: "'NoneType' object has no attribute
'print_exc'" in <bound method FancyURLopener.__del__ of <
urllib.FancyURLopener instance at 0x00D59AA8>> ignored


I do not know why, if I did something wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070405/b0a8c221/attachment.html>


More information about the Python-list mailing list