Revision: 2942
Author: pekka.klarck
Date: Mon Apr 12 08:06:31 2010
Log: cannot use `'%s' % err` when exception may contain unicode message in
[PJ]ython 2.5
http://code.google.com/p/robotframework/source/detail?r=2942
Added:
/trunk/atest/testdata/parsing/unicode_paths/Työ/tyhjä.txt
Modified:
/trunk/src/robot/parsing/model.py
=======================================
--- /trunk/src/robot/parsing/model.py Mon Apr 12 07:53:16 2010
+++ /trunk/src/robot/parsing/model.py Mon Apr 12 08:06:31 2010
@@ -70,8 +70,9 @@
DirectorySuite(path, suitenames, parent=self)
else:
FileSuite(path, parent=self)
- except DataError, err:
- LOGGER.info("Parsing data source '%s' failed: %s" % (path,
err))
+ except DataError:
+ LOGGER.info("Parsing data source '%s' failed: %s"
+ % (path, utils.get_error_message()))
# The latter check is to get a more informative exception in
# suite.filter_by_names later if --suite option was used.
if self.get_test_count() == 0 and len(suitenames) == 0:
--
To unsubscribe, reply using "remove me" as the subject.