From 9d716b8bf2f5a74c6cfb3ed771cc1b36ba0c0bcb Mon Sep 17 00:00:00 2001 From: Michael McGrath Date: Sat, 8 Mar 2008 23:21:24 -0600 Subject: [PATCH] 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 --- fas/convert.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fas/convert.py b/fas/convert.py index 5f0ce86..392655f 100644 --- a/fas/convert.py +++ b/fas/convert.py @@ -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() \ No newline at end of file + session.close()