The errors list was not being cleared out after resuming a backup
from a rate limit sleep. When the backup was resumed, the non-empty
errors list caused the backup to quit after the next `retrieve_data`
request.
This commit is contained in:
Jonas Michel
2016-01-17 11:10:28 -06:00
parent 89df625e04
commit 9b74aff20b

View File

@@ -299,10 +299,10 @@ def get_query_args(query_args=None):
def _get_response(request, auth, template):
retry_timeout = 3
errors = []
# We'll make requests in a loop so we can
# delay and retry in the case of rate-limiting
while True:
errors = []
should_continue = False
try:
r = urllib2.urlopen(request)