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:
|
class BugzillaProxy:
|
||||||
|
|
||||||
def __init__(self, bz_server, username, password, config, pre_cache_users=True):
|
def __init__(self, bz_server, username, password, config, pre_cache_users=True):
|
||||||
self.bz_xmlrpc_server = bz_server
|
self.bz_xmlrpc_server = bz_server
|
||||||
self.username = username
|
self.username = username
|
||||||
|
@ -168,9 +169,9 @@ class BugzillaProxy:
|
||||||
raise
|
raise
|
||||||
if self.config["verbose"]:
|
if self.config["verbose"]:
|
||||||
print(f" ERROR {e}")
|
print(f" ERROR {e}")
|
||||||
print(" - Query failed, going to try again in 20 seconds")
|
print(" - Query failed, going to try again in 10 seconds")
|
||||||
# Wait 20 seconds and try again
|
# Wait 10 seconds and try again
|
||||||
time.sleep(20)
|
time.sleep(10)
|
||||||
return raw_data
|
return raw_data
|
||||||
|
|
||||||
if self.config["bugzilla"]["compat_api"] == "getcomponentsdetails":
|
if self.config["bugzilla"]["compat_api"] == "getcomponentsdetails":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue