From 9b74aff20b4f320c76dc277094d9eba0b7e9f8c7 Mon Sep 17 00:00:00 2001 From: Jonas Michel Date: Sun, 17 Jan 2016 11:10:28 -0600 Subject: [PATCH] Fixes #29 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. --- bin/github-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/github-backup b/bin/github-backup index cc469f8..a7d86d3 100755 --- a/bin/github-backup +++ b/bin/github-backup @@ -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)