--> --> -->
 
 
AttributeError
Python 2.3.4: /usr/bin/python
Wed Mar 9 21:07:53 2005

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /users/t/tomchance/tomchance.org.uk/website/_ftree.py
 1369         elif re.search('person', form['op'].value):
 1370                 pid = re.search('person/(\d+)', form['op'].value).group(1)
 1371                 showPerson(pid)
 1372         elif ops.has_key(form['op'].value):
 1373                 ops[form['op'].value]()
showPerson = <function showPerson>, pid = '000044'

 /users/t/tomchance/tomchance.org.uk/website/_ftree.py in showPerson(pid='000044')
  147         # Work out name (work around maiden names)
  148         if person.has_key('fams') and person.has_key('sex') and person['sex'] == 'F':
  149                 forenames = re.search('(.*) /.*/', person['fullname']).group(1)
  150                 fid = re.search('.*(\d{6})', person['fams']).group(1)
  151                 # Check this couple isn't divorced
forenames undefined, global re = <module 're' from '/usr/lib/python2.3/re.pyc'>, re.search = <function search>, person = {'bday': 'Unknown', 'fams': '000016', 'fullname': 'Susan/', 'id': '000044', 'sex': 'F', 'surname': 'Susan'}, ).group undefined

AttributeError: 'NoneType' object has no attribute 'group'
      args = ("'NoneType' object has no attribute 'group'",)