getting closer, still needs some work
This commit is contained in:
parent
958a530c33
commit
11eb97bcd4
1 changed files with 2 additions and 0 deletions
|
@ -142,9 +142,11 @@ for role in c.fetchall():
|
||||||
session.flush()
|
session.flush()
|
||||||
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)
|
||||||
|
session.close()
|
||||||
except IntegrityError, e:
|
except IntegrityError, e:
|
||||||
if e.message.find('dupilcate key'):
|
if e.message.find('dupilcate key'):
|
||||||
print "\tERROR - The role %s -> %s already exists! Skipping" % (person_id, project_group_id)
|
print "\tERROR - The role %s -> %s already exists! Skipping" % (person_id, project_group_id)
|
||||||
|
session.close()
|
||||||
continue
|
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