UnhandledError should just pass on its error message to its parent's
__init__ method, instead of (wrongly) assigning a string message to
self.args.
Signed-off-by: John Admanski <jadmanski@google.com>
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@994 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/error.py b/server/error.py
index 8ea71c0..d82775b 100755
--- a/server/error.py
+++ b/server/error.py
@@ -38,4 +38,5 @@
class UnhandledError(TestError):
"""Indicates an unhandled exception in a test."""
def __init__(self, prefix):
- self.args = prefix + format_error()
+ msg = prefix + format_error()
+ TestError.__init__(self, msg)