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:
parent
6428a58b06
commit
809b88e328
1 changed files with 4 additions and 3 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue