From: Tony Mack Date: Sun, 23 Oct 2011 01:23:27 +0000 (-0400) Subject: skip null records X-Git-Tag: sfa-1.1-1~62 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7593f04908ea3e1500328fc9c217b420e045eab6;p=sfa.git skip null records --- 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