mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-05 16:18:02 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9023052e9c | ||
|
|
874c235ba5 | ||
|
|
1e5a90486c | ||
|
|
9b74aff20b |
22
CHANGES.rst
22
CHANGES.rst
@@ -1,7 +1,27 @@
|
||||
Changelog
|
||||
=========
|
||||
|
||||
0.10.2 (2016-08-20)
|
||||
0.10.3 (2016-08-20)
|
||||
-------------------
|
||||
|
||||
- Fixes #29. [Jonas Michel]
|
||||
|
||||
Reporting an error when the user's rate limit is exceeded causes
|
||||
the script to terminate after resuming execution from a rate limit
|
||||
sleep. Instead of generating an explicit error we just want to
|
||||
inform the user that the script is going to sleep until their rate
|
||||
limit count resets.
|
||||
|
||||
|
||||
- Fixes #29. [Jonas Michel]
|
||||
|
||||
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.
|
||||
|
||||
|
||||
0.10.2 (2016-08-21)
|
||||
-------------------
|
||||
|
||||
- Add a note regarding git version requirement. [Jose Diaz-Gonzalez]
|
||||
|
||||
@@ -392,10 +392,9 @@ def _request_http_error(exc, auth, errors):
|
||||
print('Exceeded rate limit of {} requests; waiting {} seconds to reset'.format(limit, delta), # noqa
|
||||
file=sys.stderr)
|
||||
|
||||
ratelimit_error = 'No more requests remaining'
|
||||
if auth is None:
|
||||
ratelimit_error += '; authenticate to raise your GitHub rate limit' # noqa
|
||||
errors.append(ratelimit_error)
|
||||
print('Hint: Authenticate to raise your GitHub rate limit',
|
||||
file=sys.stderr)
|
||||
|
||||
time.sleep(delta)
|
||||
should_continue = True
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = '0.10.2'
|
||||
__version__ = '0.10.3'
|
||||
|
||||
Reference in New Issue
Block a user