call utcparse before exiting get_expiration istead of calling it when timestamp is...
[sfa.git] / 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