From: Tony Mack Date: Thu, 3 Sep 2009 14:25:25 +0000 (+0000) Subject: in get_login_bases, if there are no site_ids then there are no login basees. Return... X-Git-Tag: PLCAPI-4.3-23~7 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=04b2d78778b03717801e9b744e46f57b316049ee 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. --- diff --git a/PLC/SFA.py b/PLC/SFA.py index 7671ac8..ce097f9 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: