Revision: 3605
Author: pekka.klarck
Date: Thu May 27 23:15:47 2010
Log: better error if this happens (it just did due to a bug elsewhere)
http://code.google.com/p/robotframework/source/detail?r=3605

Modified:
 /trunk/src/robot/running/arguments.py

=======================================
--- /trunk/src/robot/running/arguments.py       Thu May 27 10:07:54 2010
+++ /trunk/src/robot/running/arguments.py       Thu May 27 23:15:47 2010
@@ -85,7 +85,7 @@
             first_arg = 0
         else:
raise FrameworkError("Only MethodType and FunctionType accepted. "
-                                 "Got '%s' instead." % type(handler))
+ "Got '%s' instead." % type(handler).__name__)
         co = func.func_code
         nargs = co.co_argcount
         args = co.co_varnames[first_arg:nargs]

Reply via email to