SyntaxFix
Write A Post
Hire A Developer
Questions
import urllib2 try: fileHandle = urllib2.urlopen('http://www.python.org/fish.html') data = fileHandle.read() fileHandle.close() except urllib2.URLError, e: print 'you got an error with the code', e