From fe47eba0a03a1eef805e49318a51c439d550c239 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Wed, 18 Dec 2019 17:24:46 +0100 Subject: [PATCH] Ignore the xmlrpc error 1200 as well Signed-off-by: Pierre-Yves Chibon --- distgit_bugzilla_sync/script.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/distgit_bugzilla_sync/script.py b/distgit_bugzilla_sync/script.py index f96b047..cd07105 100644 --- a/distgit_bugzilla_sync/script.py +++ b/distgit_bugzilla_sync/script.py @@ -528,7 +528,9 @@ class BugzillaProxy: self.server.addcomponent(data) break except Exception as e: - if isinstance(e, xmlrpc.client.Fault) and e.faultCode == 504: + if isinstance(e, xmlrpc.client.Fault) and e.faultCode in [504, 1200]: + # error 504: user is not a valid username + # error 1200: Product has already a component named if self.config['verbose']: print(f" ERROR {e}") raise