[sysadmin-bin] Should go under its own try stanza as otherwise the previous one would catch it and exit sooner
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Should go under its own try stanza as otherwise the previous one would catch it and exit sooner
- Date: Wed, 20 Mar 2019 21:37:39 +0000 (UTC)
commit 51b85b19c58cb0cdeb267b932e4af78c08fbf7ab
Author: Andrea Veri <averi redhat com>
Date: Wed Mar 20 22:37:27 2019 +0100
Should go under its own try stanza as otherwise the previous one would catch it and exit sooner
gitlab/gitlab-operations.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/gitlab/gitlab-operations.py b/gitlab/gitlab-operations.py
index a03e49b..dbe3a5b 100755
--- a/gitlab/gitlab-operations.py
+++ b/gitlab/gitlab-operations.py
@@ -62,10 +62,17 @@ for username, id in ldapusers_dict.iteritems():
group.members.create({'user_id': id,
'access_level': gitlab.DEVELOPER_ACCESS})
+ print 'Username %s with id %i has been added to the GNOME group' % (username, id)
+ except gitlab.exceptions.GitlabCreateError as e:
+ if e.response_code == 409:
+ pass
+
+ try:
+ if username in gnomecvs_members:
l10n_group.members.create({'user_id': id,
'access_level': gitlab.REPORTER_ACCESS})
- print 'Username %s with id %i has been added to the GNOME group' % (username, id)
+ print 'Username %s with id %i has been added to the Teams/Translations group' % (username,
id)
except gitlab.exceptions.GitlabCreateError as e:
if e.response_code == 409:
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]