[PATCH] simplify extension loading exception error

James Cameron quozl at laptop.org
Wed Jun 2 02:30:29 EDT 2010


Discovered in shell logs of os240py, this exception was triggered due
to the yet to be merged touchpad control panel extension.  But the
exception used incorrect grammar.
---
 src/jarabe/controlpanel/gui.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/jarabe/controlpanel/gui.py b/src/jarabe/controlpanel/gui.py
index 51d9820..0f002fd 100644
--- a/src/jarabe/controlpanel/gui.py
+++ b/src/jarabe/controlpanel/gui.py
@@ -259,8 +259,7 @@ class ControlPanel(gtk.Window):
                             keywords.append(item)
                         options[item]['keywords'] = keywords
                     else:
-                        _logger.error('There is no CLASS constant specifieds ' \
-                                          'in the view file \'%s\'.' % item)
+                        _logger.error('no CLASS attribute in %s', item)
                 except Exception:
                     logging.error('Exception while loading extension:\n' + \
                         ''.join(traceback.format_exception(*sys.exc_info())))
-- 
1.7.1

-- 
James Cameron
http://quozl.linux.org.au/


More information about the Sugar-devel mailing list