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:
parent
fc0b5d66ef
commit
9d716b8bf2
1 changed files with 4 additions and 1 deletions
|
@ -143,5 +143,8 @@ for role in c.fetchall():
|
||||||
except ProgrammingError, e:
|
except ProgrammingError, e:
|
||||||
print "\tERROR - The role %s -> %s could not be created - %s" % (person_id, project_group_id, e)
|
print "\tERROR - The role %s -> %s could not be created - %s" % (person_id, project_group_id, e)
|
||||||
except IntegrityError, 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)
|
print "\tERROR - The role %s -> %s could not be created - %s" % (person_id, project_group_id, e)
|
||||||
session.close()
|
session.close()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue