--> -->
 
 
<type 'exceptions.IOError'>
Python 2.5.2: /usr/bin/python
Thu Nov 27 05:15:32 2014

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 0x7fcc9f62eb18>, 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 0x7fcc9f600de8>
 /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 0x7fcc9f6050b8>, f undefined, builtin open = <built-in function open>, safematch.group = <built-in method group of _sre.SRE_Match object at 0x7fcc9f6050b8>

<type 'exceptions.IOError'>: [Errno 21] Is a directory
      args = (21, 'Is a directory')
      errno = 21
      filename = None
      message = ''
      strerror = 'Is a directory'