diff --git a/distgit_bugzilla_sync/script.py b/distgit_bugzilla_sync/script.py index bd9b099..f3d86b1 100644 --- a/distgit_bugzilla_sync/script.py +++ b/distgit_bugzilla_sync/script.py @@ -453,6 +453,10 @@ class BugzillaProxy: self.server.editcomponent(data) break except Exception as e: + if isinstance(e, xmlrpc.client.Fault) and e.faultCode == 504: + if self.config['verbose']: + print(f" ERROR {e}") + raise if i >= num_attempts - 1: raise if self.config['verbose']: @@ -523,6 +527,10 @@ class BugzillaProxy: self.server.addcomponent(data) break except Exception as e: + if isinstance(e, xmlrpc.client.Fault) and e.faultCode == 504: + if self.config['verbose']: + print(f" ERROR {e}") + raise if i >= num_attempts - 1: raise if self.config['verbose']: