thomasvs - in flumotion/branches/eaters-info-1: . flumotion/admin/gtk

flumotion-commit at lists.fluendo.com flumotion-commit at lists.fluendo.com
Mon Mar 12 16:11:25 CET 2007


Author: thomasvs
Date: Mon Mar 12 16:11:22 2007
New Revision: 4615

Modified:
   flumotion/branches/eaters-info-1/ChangeLog
   flumotion/branches/eaters-info-1/flumotion/admin/gtk/client.py
Log:
	* flumotion/admin/gtk/client.py:
	  Trap NoBundleError to avoid an embarassing Error message.



Modified: flumotion/branches/eaters-info-1/ChangeLog
==============================================================================
--- flumotion/branches/eaters-info-1/ChangeLog	(original)
+++ flumotion/branches/eaters-info-1/ChangeLog	Mon Mar 12 16:11:22 2007
@@ -1,5 +1,10 @@
 2007-03-12  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+	* flumotion/admin/gtk/client.py:
+	  Trap NoBundleError to avoid an embarassing Error message.
+
+2007-03-12  Thomas Vander Stichele  <thomas at apestaart dot org>
+
 	* flumotion/launch/main.py:
 	  Give us more information on where the problem originates by
 	  using log.getFailureMessage

Modified: flumotion/branches/eaters-info-1/flumotion/admin/gtk/client.py
==============================================================================
--- flumotion/branches/eaters-info-1/flumotion/admin/gtk/client.py	(original)
+++ flumotion/branches/eaters-info-1/flumotion/admin/gtk/client.py	Mon Mar 12 16:11:22 2007
@@ -418,8 +418,10 @@
 
     def _nodeRenderErrback(self, failure, nodeName):
         self.warning('Could not render node %s' % nodeName)
-        msg = 'Could not render node %s: %s' % (nodeName,
-            log.getFailureMessage(failure))
+        debug = log.getFailureMessage(failure)
+        if failure.check(errors.NoBundleError):
+            debug = "Could not get bundle %s" % failure.value.args[0]
+        msg = 'Could not render node %s: %s' % (nodeName, debug)
         self.debug(msg)
         m = messages.Error(T_(
                 N_("This component has a UI bug in the %s tab."), nodeName),


More information about the flumotion-commit mailing list