Swhack! 14 April 2004

--> -->
 
 
<type 'exceptions.IOError'>
Python 2.6.5: /usr/bin/python
Thu May 24 04:59:02 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.

 /var/www/swhack.com/logs/index.cgi in ()
  174    if not fn: homepage()
  175    else: log(fn)
  176 
  177 if __name__=="__main__": 
  178    main()
main = <function main>
 /var/www/swhack.com/logs/index.cgi in main()
  173    fn = os.environ.get('REQUEST_URI', '/').split('/').pop()
  174    if not fn: homepage()
  175    else: log(fn)
  176 
  177 if __name__=="__main__": 
global log = <function log>, fn = '2004-04-14.txt'
 /var/www/swhack.com/logs/index.cgi in log(fn='2004-04-14.txt')
   74    print '<h1>Swhack! %s %s %s</h1>' % (day, month, year)
   75 
   76    f = open(fn + '.txt')
   77    for line in f: 
   78       line = line.rstrip('\n')
f undefined, builtin open = <built-in function open>, fn = '2004-04-14.txt'

<type 'exceptions.IOError'>: [Errno 2] No such file or directory: '2004-04-14.txt.txt'
      args = (2, 'No such file or directory')
      errno = 2
      filename = '2004-04-14.txt.txt'
      message = ''
      strerror = 'No such file or directory'