Showing 1 of 2 files from the diff.

@@ -339,12 +339,18 @@
Loading
339 339
    def _thd_stop_instance(self, instance, fast):
340 340
        docker_client = self._getDockerClient()
341 341
        log.msg('Stopping container {}...'.format(instance['Id'][:6]))
342 -
        docker_client.stop(instance['Id'])
342 +
        try:
343 +
            docker_client.stop(instance['Id'])
344 +
        except docker.errors.NotFound as not_found_err:
345 +
            log.msg('Cannot stop container {}: {}'.format(instance['Id'][:6], not_found_err))
346 +
            # don't try to wait for it.
347 +
            fast = True
343 348
        if not fast:
344 349
            docker_client.wait(instance['Id'])
345 -
        docker_client.remove_container(instance['Id'], v=True, force=True)
350 +
        try:
351 +
            docker_client.remove_container(instance['Id'], v=True, force=True)
352 +
        except docker.errors.NotFound as not_found_err:
353 +
            log.msg('Cannot remove container {}: {}'.format(instance['Id'][:6], not_found_err))
354 +
346 355
        if self.image is None:
347 -
            try:
348 -
                docker_client.remove_image(image=instance['image'])
349 -
            except docker.errors.APIError as e:
350 -
                log.msg('Error while removing the image: %s', e)
356 +
            docker_client.remove_image(image=instance['image'])
Files Coverage
master/buildbot 92.09%
worker/buildbot_worker 85.09%
Project Totals (340 files) 91.66%
Untitled

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading