From: "Jauhien Piatlicki" <piatlicki@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/g-sorcery:master commit in: gs_pypi/
Date: Wed, 14 Aug 2013 13:34:04 +0000 (UTC) [thread overview]
Message-ID: <1376487206.0c6eb9864124cee25a5ba407ad01d0bb930b4701.jauhien@gentoo> (raw)
commit: 0c6eb9864124cee25a5ba407ad01d0bb930b4701
Author: Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
AuthorDate: Wed Aug 14 13:33:26 2013 +0000
Commit: Jauhien Piatlicki <piatlicki <AT> gmail <DOT> com>
CommitDate: Wed Aug 14 13:33:26 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/g-sorcery.git;a=commit;h=0c6eb986
gs_pypi/pypi_db: restrict number of attempts to download package page
---
gs_pypi/pypi_db.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gs_pypi/pypi_db.py b/gs_pypi/pypi_db.py
index 69ad476..07fc3bc 100644
--- a/gs_pypi/pypi_db.py
+++ b/gs_pypi/pypi_db.py
@@ -54,13 +54,16 @@ class PypiDBGenerator(DBGenerator):
pkg_uries = self.decode_download_uries(pkg_uries)
for uri in pkg_uries:
+ attempts = 0
while True:
try:
+ attempts += 1
self.process_uri(uri, data)
except DownloadingError as error:
print(str(error))
- time.sleep(2)
- continue
+ time.sleep(5)
+ if attempts < 100:
+ continue
break
return data
next reply other threads:[~2013-08-14 13:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-14 13:34 Jauhien Piatlicki [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-11-21 11:30 [gentoo-commits] proj/g-sorcery:master commit in: gs_pypi/ Jauhien Piatlicki
2013-11-12 23:10 Jauhien Piatlicki
2013-09-08 9:06 Jauhien Piatlicki
2013-09-06 15:42 Jauhien Piatlicki
2013-09-06 7:06 Jauhien Piatlicki
2013-09-05 16:33 Jauhien Piatlicki
2013-08-30 16:08 Jauhien Piatlicki
2013-08-29 23:29 Jauhien Piatlicki
2013-08-29 19:23 Jauhien Piatlicki
2013-08-14 19:21 Jauhien Piatlicki
2013-08-13 23:47 Jauhien Piatlicki
2013-08-12 18:38 [gentoo-commits] proj/g-sorcery:pypi " Jauhien Piatlicki
2013-08-12 15:45 ` [gentoo-commits] proj/g-sorcery:master " Jauhien Piatlicki
2013-08-12 18:38 Jauhien Piatlicki
2013-08-12 15:41 Jauhien Piatlicki
2013-08-12 0:36 Jauhien Piatlicki
2013-08-12 0:36 Jauhien Piatlicki
2013-08-12 0:36 Jauhien Piatlicki
2013-07-26 14:46 Jauhien Piatlicki
2013-07-26 9:40 Jauhien Piatlicki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1376487206.0c6eb9864124cee25a5ba407ad01d0bb930b4701.jauhien@gentoo \
--to=piatlicki@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox