Wait for 10 seconds instead of 20 when querying bugzilla failed

This should make the script a little faster and 10 seconds should be
enough.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-08-20 12:54:18 +02:00
parent 6428a58b06
commit 809b88e328

View file

@ -114,6 +114,7 @@ def segment(iterable, chunk, fill=None):
class BugzillaProxy:
def __init__(self, bz_server, username, password, config, pre_cache_users=True):
self.bz_xmlrpc_server = bz_server
self.username = username
@ -168,9 +169,9 @@ class BugzillaProxy:
raise
if self.config["verbose"]:
print(f" ERROR {e}")
print(" - Query failed, going to try again in 20 seconds")
# Wait 20 seconds and try again
time.sleep(20)
print(" - Query failed, going to try again in 10 seconds")
# Wait 10 seconds and try again
time.sleep(10)
return raw_data
if self.config["bugzilla"]["compat_api"] == "getcomponentsdetails":