Now fixing the places where we're raising string exceptions on the
client code. The patch also fixes identation errors in the iostat
profiler and error.py'>error.py.

Signed-off-by: Lucas Meneghel Rodrigues <lucasmr@br.ibm.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1158 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/common_lib/error.py b/client/common_lib/error.py
index a878a28..720cb9c 100644
--- a/client/common_lib/error.py
+++ b/client/common_lib/error.py
@@ -6,13 +6,13 @@
 from traceback import format_exception
 
 def format_error():
-        t, o, tb = sys.exc_info()
-        trace = format_exception(t, o, tb)
-        # Clear the backtrace to prevent a circular reference
-        # in the heap -- as per tutorial
-        tb = ''
+	t, o, tb = sys.exc_info()
+	trace = format_exception(t, o, tb)
+	# Clear the backtrace to prevent a circular reference
+	# in the heap -- as per tutorial
+	tb = ''
 
-        return ''.join(trace)
+	return ''.join(trace)
 
 class JobContinue(SystemExit):
 	"""Allow us to bail out requesting continuance."""
@@ -40,7 +40,8 @@
 		return "Command <" + self.args[0] + "> failed, rc=%d" % (self.args[1])
 
 class PackageError(TestError):
-       """Indicates an error trying to perform a package operation."""
+	"""Indicates an error trying to perform a package operation."""
+	pass
 
 class UnhandledError(TestError):
 	"""Indicates an unhandled exception in a test."""