--> -->
 
 
<type 'exceptions.AttributeError'>
Python 2.5.5: /usr/bin/python2.5
Fri Jan 27 16:11: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/hendry/projects/fortune/fortune.py in ()
   42 
   43         print tproc.process(template)
   44 
   45 if __name__ == "__main__":
   46     main()
main = <function main at 0x29120ca1758>
 /home/hendry/projects/fortune/fortune.py in main()
   12     form = cgi.FieldStorage()
   13     fortune = Fortune(form)
   14     fortune.ui()
   15 
   16 class Fortune:
fortune = <__main__.Fortune instance at 0x29120cc5368>, fortune.ui = <bound method Fortune.ui of <__main__.Fortune instance at 0x29120cc5368>>
 /home/hendry/projects/fortune/fortune.py in ui(self=<__main__.Fortune instance at 0x29120cc5368>)
   35         fortune = stdout.read()
   36         self.count += float(len(fortune) + self.templatesize) / 1024
   37         cat, txt = re.compile('\s*\(([^)]+)\)[%\s]+(.+)',re.DOTALL).match(fortune).groups()
   38 
   39         tproc.set("title", cat)
cat undefined, txt undefined, global re = <module 're' from '/usr/lib/python2.5/re.pyc'>, re.compile = <function compile at 0x29120cda488>, re.DOTALL = 16, ).match undefined, fortune = '', ).groups undefined

<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'groups'
      args = ("'NoneType' object has no attribute 'groups'",)
      message = "'NoneType' object has no attribute 'groups'"