catch exceptions from adding users, another process may have added them
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
This commit is contained in:
parent
47f99ffa18
commit
ac341d04b6
1 changed files with 5 additions and 1 deletions
|
@ -174,7 +174,11 @@ if __name__ == '__main__':
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
print "Adding user %s" % owner
|
print "Adding user %s" % owner
|
||||||
else:
|
else:
|
||||||
session.createUser(owner)
|
try:
|
||||||
|
session.createUser(owner)
|
||||||
|
except:
|
||||||
|
# user already exists
|
||||||
|
continue
|
||||||
kojiusers.append(owner)
|
kojiusers.append(owner)
|
||||||
if not kojipkgs.has_key(pkg):
|
if not kojipkgs.has_key(pkg):
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue