From: Tony Mack Date: Thu, 30 Aug 2012 15:11:48 +0000 (-0400) Subject: fix potential attribute error X-Git-Tag: sfa-3.0-0~124 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d9c3268fb8bdb5269dd2b77c85eff08816e863e2;p=sfa.git fix potential attribute error --- diff --git a/sfa/util/xrn.py b/sfa/util/xrn.py index f2ab48bc..02f4adb9 100644 --- a/sfa/util/xrn.py +++ b/sfa/util/xrn.py @@ -251,7 +251,7 @@ class Xrn: else: urn = "+".join(['',authority_string,self.type,Xrn.unescape(name)]) - if self.id: + if hasattr(self, 'id') and self.id: urn = "%s:%s" % (urn, self.id) self.urn = Xrn.URN_PREFIX + urn