]> git.ipfire.org Git - oddments/fireinfo.git/commitdiff
Skip None values in id generation.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Dec 2010 08:52:09 +0000 (09:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Dec 2010 08:52:09 +0000 (09:52 +0100)
fireinfo/system.py

index 5dd4f0c137871ea89063f32981a9c74e473fe989..a0a3d24b318dba280b437530f1ed85547f0560b4 100644 (file)
@@ -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