Ignore the xmlrpc error 1200 as well

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-12-18 17:24:46 +01:00
parent 46ce635179
commit fe47eba0a0

View file

@ -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 <email> is not a valid username
# error 1200: Product <product> has already a component named <name>
if self.config['verbose']:
print(f" ERROR {e}")
raise