Revision: 3025
Author: jprantan
Date: Fri Apr 16 04:54:28 2010
Log: Cannot use unic anymore as it won't raise Exception
http://code.google.com/p/robotframework/source/detail?r=3025

Modified:
 /trunk/src/robot/utils/error.py

=======================================
--- /trunk/src/robot/utils/error.py     Fri Apr 16 01:31:21 2010
+++ /trunk/src/robot/utils/error.py     Fri Apr 16 04:54:28 2010
@@ -132,9 +132,9 @@
         return unic(exc_type)
     name = _get_name(exc_type)
     try:
-        msg = unic(exc_value)
- except UnicodeError: # Happens at least if exception message is unicode
-        msg = unic(exc_value.args[0])
+        msg = unicode(exc_value)
+    except UnicodeError:  # Happens if message is Unicode and version < 2.6
+        msg = ' '.join(unic(a) for a in exc_value.args)
     return _format_message(name, msg)




--
Subscription settings: 
http://groups.google.com/group/robotframework-commit/subscribe?hl=en

Reply via email to