From 40c6c2c302c522e1f897ed5ec1b875a698282622 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Feb 24 2012 14:08:51 +0000 Subject: dont error out on a tag failure. --- diff --git a/util/koji-shadow b/util/koji-shadow index a5f4e6b..c9e0d98 100755 --- a/util/koji-shadow +++ b/util/koji-shadow @@ -1233,8 +1233,12 @@ class BuildTracker(object): def tagSuccessful(self, nvr, tag): """tag completed builds into final tags""" - session.tagBuildBypass(tag, nvr) - print "tagged %s to %s" % (nvr, tag) + #TODO: check if there are other reasons why tagging may fail and handle them + try: + session.tagBuildBypass(tag, nvr) + print "tagged %s to %s" % (nvr, tag) + except koji.TagError: + print "NOTICE: %s already tagged in %s" % (nvr, tag) def main(args):