| <type 'exceptions.IOError'> | Python 2.5.2: /usr/bin/python Wed May 16 15:54:46 2012 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/cgi-bin/sdl/index.cgi in |
| 76 except: |
| 77 print 'Content-type: text/html\n\n' |
| 78 print "An error occurred, contact mfd44@cornell.edu" |
| 79 else: sys.exit(cgi_main(sys.argv)) |
| 80 |
| sys = <module 'sys' (built-in)>, sys.exit = <built-in function exit>, cgi_main = <function cgi_main at 0x1ff6b18>, sys.argv = ['index.cgi'] |
| /home/cgi-bin/sdl/index.cgi in cgi_main(argv=['index.cgi']) |
| 23 #The line below is to handle links to the old website that linked to index.html |
| 24 elif "/index.html" == os.environ["PATH_INFO"]: printHomePage() |
| 25 else: handleGenericHTML() |
| 26 |
| 27 def handleCSS(): |
| global handleGenericHTML = <function handleGenericHTML at 0x2072de8> |
| /home/cgi-bin/sdl/index.cgi in handleGenericHTML() |
| 35 def handleGenericHTML(): |
| 36 safematch = re.match(r'^(/\w+)+(\.\w+)?$', os.environ["PATH_INFO"]) |
| 37 if safematch: f = open("/home/www/sdl" + safematch.group(), 'rb') |
| 38 print f.read() |
| 39 f.close() |
| safematch = <_sre.SRE_Match object at 0x20760b8>, f undefined, builtin open = <built-in function open>, safematch.group = <built-in method group of _sre.SRE_Match object at 0x20760b8> |
<type 'exceptions.IOError'>: [Errno 2] No such file or directory: '/home/www/sdl/CurricularNew.html'
args =
(2, 'No such file or directory')
errno =
2
filename =
'/home/www/sdl/CurricularNew.html'
message =
''
strerror =
'No such file or directory'