tolerate no slice name in sliverstatus screen
authorsmbaker <smbaker@fc8clean.lan>
Thu, 12 Jan 2012 20:26:22 +0000 (12:26 -0800)
committersmbaker <smbaker@fc8clean.lan>
Thu, 12 Jan 2012 20:26:22 +0000 (12:26 -0800)
sface/sfidata.py

index 9a2710a..0adda24 100644 (file)
@@ -105,6 +105,9 @@ class SfiData:
         if not slice:
             slice = config.getSlice()
 
         if not slice:
             slice = config.getSlice()
 
+        if not slice:
+            return None
+
         filename = config.fullpath(slice+".sliverstatus")
 
         if os.path.exists(filename):
         filename = config.fullpath(slice+".sliverstatus")
 
         if os.path.exists(filename):