Skip to content

Commit

Permalink
Merge pull request #11 from fedora-infra/feature/supress-errors
Browse files Browse the repository at this point in the history
Suppress errors.
  • Loading branch information
ralphbean committed Feb 10, 2015
2 parents e39e82d + d669ecf commit ef0a32d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions hotness/consumers.py
Expand Up @@ -20,6 +20,7 @@
"""

import socket
import traceback

import fedmsg
import fedmsg.consumers
Expand Down Expand Up @@ -177,10 +178,14 @@ def handle_anitya(self, msg):
trigger=msg, bug=dict(bug_id=bz.bug_id)))

self.log.info("Now with #%i, time to do koji stuff" % bz.bug_id)
task_id = self.buildsys.handle(package, upstream, version, bz)

# Map that koji task_id to the bz ticket we want to follow up on
self.triggered_task_ids[task_id] = bz
try:
# Kick off a scratch build..
task_id = self.buildsys.handle(package, upstream, version, bz)
# Map that koji task_id to the bz ticket we want to pursue.
self.triggered_task_ids[task_id] = bz
except Exception:
self.log.warning("Failed to kick off scratch build.")
self.log.warning(traceback.format_exc())

def handle_buildsys_scratch(self, msg):
# Is this a scratch build that we triggered a couple minutes ago?
Expand Down

0 comments on commit ef0a32d

Please sign in to comment.