git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
eaadba7
)
type may be None
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 19 Jan 2011 18:42:48 +0000
(13:42 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 19 Jan 2011 18:42:48 +0000
(13:42 -0500)
sfa/util/xrn.py
patch
|
blob
|
history
diff --git
a/sfa/util/xrn.py
b/sfa/util/xrn.py
index
8ee8331
..
d33bc4e
100644
(file)
--- 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]