diff --git a/avocado/utils/process.py b/avocado/utils/process.py index 1ba73e14f715e955ed9430328cc79c616441f0e2..1bdbf2209eae4c602e8b4f1295918603cbc66db4 100644 --- a/avocado/utils/process.py +++ b/avocado/utils/process.py @@ -282,7 +282,7 @@ class SubProcess(object): env=self.env) except OSError, details: if details.errno == 2: - exc = OSError("File '%s' not found" % self.cmd.split[0]) + exc = OSError("File '%s' not found" % self.cmd.split()[0]) exc.errno = 2 raise exc else: