We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55b6388 commit 190ab22Copy full SHA for 190ab22
obs_maven/repo.py
@@ -60,6 +60,7 @@ def parse_primary(self):
60
logging.debug("Parsing primary %s", primary_url)
61
for cnt in range(1, 4):
62
try:
63
+ logging.debug("Getting primary try %s", cnt)
64
65
# Download the primary.xml.gz to a file first to avoid
66
# connection resets
@@ -82,9 +83,9 @@ def parse_primary(self):
82
83
input_source.setByteStream(gzip_fd)
84
parser.parse(input_source)
85
self._rpms = handler.rpms.values()
- except:
86
+ break
87
+ except OSError:
88
if cnt < 3:
- logging.debug("Getting primary try {}".format(cnt + 1))
89
time.sleep(2)
90
else:
91
raise
0 commit comments