dont hide exception message
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 21 Jun 2011 15:34:17 +0000 (11:34 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 21 Jun 2011 15:34:17 +0000 (11:34 -0400)
sfa/rspecs/rspec.py

index c127ae1..f2fa662 100755 (executable)
@@ -47,8 +47,8 @@ class RSpec:
             # 'rspec' file doesnt exist. 'rspec' is proably an xml string
             try:
                 tree = etree.parse(StringIO(rspec), parser)
-            except:
-                raise InvalidRSpec('Must specify a xml file or xml string. Received: ' + rspec )
+            except Exception, e:
+                raise InvalidRSpec(str(e))
         self.xml = tree.getroot()  
         if namespaces:
            self.namespaces = namespaces