some additional changes. The data in our db isn't quite as good as I'd want but its all completely fixable during migration it seems

This commit is contained in:
Michael McGrath 2008-03-08 23:21:24 -06:00
parent fc0b5d66ef
commit 9d716b8bf2

View file

@ -143,5 +143,8 @@ for role in c.fetchall():
except ProgrammingError, e:
print "\tERROR - The role %s -> %s could not be created - %s" % (person_id, project_group_id, e)
except IntegrityError, e:
if e.message.find('dupilcate key'):
print "\tERROR - The role %s -> %s already exists! Skipping" % (person_id, project_group_id)
continue
print "\tERROR - The role %s -> %s could not be created - %s" % (person_id, project_group_id, e)
session.close()
session.close()