[rhmessaging-commits] rhmessaging commits: r3293 - mgmt/trunk/wooly/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Apr 15 15:26:34 EDT 2009


Author: eallen
Date: 2009-04-15 15:26:33 -0400 (Wed, 15 Apr 2009)
New Revision: 3293

Modified:
   mgmt/trunk/wooly/python/wooly/widgets.py
Log:
Avoid app error when escaping empty string (or None)

Modified: mgmt/trunk/wooly/python/wooly/widgets.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/widgets.py	2009-04-15 19:11:51 UTC (rev 3292)
+++ mgmt/trunk/wooly/python/wooly/widgets.py	2009-04-15 19:26:33 UTC (rev 3293)
@@ -468,6 +468,8 @@
     return str(string).replace("&", "&")
 
 def escape_entity(string, exceptions=None):
+    if not string:
+        return ""
     t = ""
     ex = exceptions or list()
     for i in string:




More information about the rhmessaging-commits mailing list