Cryto! l. ? logg

--> -->
 
 
<type 'exceptions.IOError'>
Python 2.6.6:
Sat Nov 18 14:07:43 2017

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/logs/crytocc/loggyhtml.py in ()
  174    if not fn: homepage()
  175    else: log(fn)
  176  
  177 if __name__=="__main__": 
  178    main()
main = <function main>
 /var/www/logs/crytocc/loggyhtml.py 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 = 'loggyhtml.py'
 /var/www/logs/crytocc/loggyhtml.py in log(fn='loggyhtml.py')
   74    print '<h1>Cryto! %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 = 'loggyhtml.py'

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