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