From 04b2d78778b03717801e9b744e46f57b316049ee Mon Sep 17 00:00:00 2001
From: Tony Mack <tmack@cs.princeton.edu>
Date: Thu, 3 Sep 2009 14:25:25 +0000
Subject: [PATCH] in get_login_bases, if there are no site_ids then there are
 no login basees. Return an empty list instead of throwing an exception.

---
 PLC/SFA.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PLC/SFA.py b/PLC/SFA.py
index 7671ac84..ce097f9b 100644
--- a/PLC/SFA.py
+++ b/PLC/SFA.py
@@ -69,7 +69,7 @@ class SFA:
         elif object.has_key('site_ids') and object['site_ids']:
             site_ids.extend(object['site_ids'])
         else:
-            raise Exception
+            return login_bases
 
         # get the login bases
         for site_id in site_ids:
-- 
2.47.0