From: Tony Mack Date: Wed, 19 Jan 2011 18:42:48 +0000 (-0500) Subject: type may be None X-Git-Tag: sfa-1.0-12~11 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=590eb4637282d7b6c51397d41496580f63d691ca;p=sfa.git type may be None --- diff --git a/sfa/util/xrn.py b/sfa/util/xrn.py index 8ee83315..d33bc4ea 100644 --- a/sfa/util/xrn.py +++ b/sfa/util/xrn.py @@ -139,7 +139,7 @@ class Xrn: if self.hrn.startswith(Xrn.URN_PREFIX): raise SfaAPIError, "Xrn.hrn_to_urn, hrn=%s"%self.hrn - if self.type.startswith('authority'): + if self.type and self.type.startswith('authority'): self.authority = Xrn.hrn_split(self.hrn) type_parts = self.type.split("+") self.type = type_parts[0]