From: Michael Tremer Date: Sat, 11 Dec 2010 08:52:09 +0000 (+0100) Subject: Skip None values in id generation. X-Git-Tag: v0.8~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88b0ded53e29560410c774c7970b60e4ad5ca2bf;p=oddments%2Ffireinfo.git Skip None values in id generation. --- diff --git a/fireinfo/system.py b/fireinfo/system.py index 5dd4f0c..a0a3d24 100644 --- a/fireinfo/system.py +++ b/fireinfo/system.py @@ -196,6 +196,9 @@ class System(object): # Sort out all bogous or invalid strings from the list. _ids = [] for id in ids: + if id is None: + continue + for i in INVALID_ID_STRINGS: if i in id: id = None