Skip to content

Commit

Permalink
Fixes #110: This does not really fix the problem. Log about attaching is
Browse files Browse the repository at this point in the history
valid only in case really attach.

Signed-off-by: Petr Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Mar 11, 2016
1 parent d71096d commit a99c1fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hotness/bz.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ def follow_up(self, text, bug):
self.log.info("Followed up on bug: %s" % bug.weburl)

def attach_patch(self, filename, description, bug):
self.log.debug("Attaching patch to bug %r" % bug.bug_id)
if os.path.exists(filename) and os.path.getsize(filename) != 0:
self.log.debug("Attaching patch to bug %r" % bug.bug_id)
self.bugzilla.attachfile(bug.bug_id, filename, description,
is_patch=True)
is_patch=True)
self.log.info("Attached patch to bug: %s" % bug.weburl)

def ftbfs_bugs(self, name):
Expand Down

0 comments on commit a99c1fb

Please sign in to comment.