fix potential attribute error
[sfa.git] / sfa / util / xrn.py
index 02f4adb..0721f81 100644 (file)
@@ -116,7 +116,7 @@ class Xrn:
     # self.type\r
     # self.path\r
     # provide either urn, or (hrn + type)\r
-    def __init__ (self, xrn, type=None, id=None):\r
+    def __init__ (self, xrn="", type=None, id=None):\r
         if not xrn: xrn = ""\r
         # user has specified xrn : guess if urn or hrn\r
         self.id = id\r