Commit 932fa56f authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix JobError exception raise in ForkedJob

parent 75cff2d8
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -333,9 +333,10 @@ class ForkedJob(object):
                if return_status & 0xff == signal.SIGKILL:
                    logger.error('Job was killed')
                else:
                    raise JobError('Exception during job, returned %s, signal %s',
                    raise JobError('Exception during job, returned %s, signal'
                                   ' %s' % (
                                       return_status,
                                   num_to_sig(return_status & 0xff))
                                       num_to_sig(return_status & 0xff)))
        finally:
            self.fork_pid = None
            self.job_done.set()