From 68de510c13e1e59963267a88d2abec51641ef11b Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Fri, 23 Sep 2016 10:33:10 +0000 Subject: [PATCH] Sometimes we have no mash, so dont wait for mash_thread if we dont If self.state['completed_repos'] is True, we don't kick off a mash thread, and def mash() returns nothing (None). Signed-off-by: Patrick Uiterwijk --- bodhi/server/consumers/masher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bodhi/server/consumers/masher.py b/bodhi/server/consumers/masher.py index 551ab2f5a3..c1965dcd2c 100644 --- a/bodhi/server/consumers/masher.py +++ b/bodhi/server/consumers/masher.py @@ -685,6 +685,9 @@ def mash(self): return mash_thread def wait_for_mash(self, mash_thread): + if mash_thread is None: + self.log.info('Not waiting for mash thread, as there was no mash') + return self.log.debug('Waiting for mash thread to finish') mash_thread.join() if mash_thread.success: