--- wms2.py	2009-10-09 18:45:46.000000000 +0200
+++ wms.py	2009-10-09 11:39:14.000000000 +0200
@@ -234,9 +233,8 @@
         if u.info()['Content-Type'] == 'application/vnd.ogc.se_xml':
             se_xml = u.read()
             se_tree = etree.fromstring(se_xml)
-            print se_tree.find('ServiceException').text
             raise ServiceException, \
-                str(se_tree.find('ServiceException').text.decode()).strip()
+                unicode(se_tree.find('ServiceException').text).strip()
         return u
 @@ -145,8 +145,7 @@
         if u.info().gettype() == 'application/vnd.ogc.se_xml':
             se_xml = u.read()
             se_tree = etree.fromstring(se_xml)
-            raise ServiceException, \
-                str(se_tree.find('ServiceException').text).strip()
+            raise ServiceException, unicode(se_tree.find('ServiceException').text).strip()
         return u

