catch exceptions from adding users, another process may have added them

Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
This commit is contained in:
Dennis Gilmore 2016-03-05 19:18:31 +00:00
parent 47f99ffa18
commit ac341d04b6

View file

@ -174,7 +174,11 @@ if __name__ == '__main__':
if DEBUG:
print "Adding user %s" % owner
else:
session.createUser(owner)
try:
session.createUser(owner)
except:
# user already exists
continue
kojiusers.append(owner)
if not kojipkgs.has_key(pkg):
if DEBUG: