update exception syntax in signed-repo code

This commit is contained in:
Mike McLean 2017-03-02 17:36:50 -05:00
parent e0826a3145
commit 1bfa815b16
3 changed files with 4 additions and 4 deletions

View file

@ -5019,7 +5019,7 @@ class createSignedRepoTask(CreaterepoTask):
#arch is the arch of the repo, not the task
self.rinfo = self.session.repoInfo(repo_id, strict=True)
if self.rinfo['state'] != koji.REPO_INIT:
raise koji.GenericError, "Repo %(id)s not in INIT state (got %(state)s)" % self.rinfo
raise koji.GenericError("Repo %(id)s not in INIT state (got %(state)s)" % self.rinfo)
self.repo_id = self.rinfo['id']
self.pathinfo = koji.PathInfo(self.options.topdir)
groupdata = os.path.join(