kojid: more meaningful error message
Fixes: https://pagure.io/koji/issue/2414
This commit is contained in:
parent
dba936e21a
commit
94b06f272e
1 changed files with 7 additions and 1 deletions
|
|
@ -6339,7 +6339,13 @@ class WaitrepoTask(BaseTaskHandler):
|
|||
last_repo = None
|
||||
|
||||
while True:
|
||||
taginfo = self.session.getTag(tag, strict=True)
|
||||
try:
|
||||
taginfo = self.session.getTag(tag, strict=True)
|
||||
except koji.GenericError:
|
||||
self.logger.debug("Tag %s got lost while waiting for newrepo", tag)
|
||||
raise koji.GenericError("Unsuccessfully waited %s for %s repo. "
|
||||
"Tag was probably deleted meanwhile." %
|
||||
(koji.util.duration(start), tag))
|
||||
repo = self.session.getRepo(taginfo['id'])
|
||||
if repo and repo != last_repo:
|
||||
if builds:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue