code: def __wrap_docker_exec(func):
      '''Wrap a function to raise DockerExecuteError on ENOENT'''
      def call(*args, **kwargs):
          try:
              return func(*args, **kwargs)
          except OSError as e:
              if e.errno == errno.ENOENT:
                  raise DockerExecuteError('Failed to execute docker. Is it installed?')
              raise
      return calf __wrap_docker_exec(func):
      '''Wrap a function to raise DockerExecuteError on ENOENT'''
      def call(*args, **kwargs):
          try:
              return func(*args, **kwargs)
          except OSError as e:
              if e.errno == errno.ENOENT:
                  raise DockerExecuteError('Failed to execute docker. Is it installed?')
              raise
      return call
docs: Wrap a function to raise DockerExecuteError on ENOENT