X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fserver%2Finterface.py;fp=sfa%2Fserver%2Finterface.py;h=dbc8ef2077c4dd712464b0fc25ec6e967555290e;hb=7593f04908ea3e1500328fc9c217b420e045eab6;hp=b7111e2a0523072b3168c6d410aaff77f9620e85;hpb=c09cb1cf1e4b83db7c8471d80af249d34ec6a6b7;p=sfa.git diff --git a/sfa/server/interface.py b/sfa/server/interface.py index b7111e2a..dbc8ef20 100644 --- a/sfa/server/interface.py +++ b/sfa/server/interface.py @@ -70,7 +70,7 @@ class Interfaces(dict): required_fields = self.default_fields.keys() for record in records: - if not set(required_fields).issubset(record.keys()): + if not record or not set(required_fields).issubset(record.keys()): continue # port is appended onto the domain, before the path. Should look like: # http://domain:port/path