From 590eb4637282d7b6c51397d41496580f63d691ca Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 19 Jan 2011 13:42:48 -0500 Subject: [PATCH] type may be None --- sfa/util/xrn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.43.0