Ignore the xmlrpc error 1200 as well
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
46ce635179
commit
fe47eba0a0
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue