From ed0e45e12b82cf4fcb6d5a9cfa7afcfe6aa8f786 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Mar 02 2017 16:09:00 +0000 Subject: a few more exceptions --- diff --git a/builder/kojid b/builder/kojid index ea59c54..a9521ac 100755 --- a/builder/kojid +++ b/builder/kojid @@ -2460,7 +2460,7 @@ class BuildLiveMediaTask(BuildImageTask): # XXX - are these still required here? self.logger.error("Missing the following dependencies: " "pykickstart, pycdio, and possibly python-hashlib") - raise koji.PreBuildError, 'Live Media functions not available' + raise koji.PreBuildError('Live Media functions not available') # build the image bld_info = None diff --git a/hub/kojihub.py b/hub/kojihub.py index 7e1ff7c..be2cd55 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -10844,7 +10844,7 @@ class BuildRoot(object): values={'id': self.id}, clauses=['buildroot_id=%(id)s']) data = query.executeOne() if not data: - raise koji.GenericError, 'Not a standard buildroot: %i' % self.id + raise koji.GenericError('Not a standard buildroot: %i' % self.id) self.data.update(data) # arch for compat self.data['arch'] = self.data['container_arch'] @@ -10894,7 +10894,7 @@ class BuildRoot(object): def assertStandard(self): if self.id is None: - raise koji.GenericError, "buildroot not specified" + raise koji.GenericError("buildroot not specified") if not self.is_standard: raise koji.GenericError('Not a standard buildroot: %s' % self.id)