From: Michael Tremer Date: Wed, 12 Aug 2015 09:50:42 +0000 (+0100) Subject: Filter all IDs that only consist of 0xff X-Git-Tag: v2.1.12~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d58f8ef75a29dd6f8968084b5383ce0f39c75666;p=oddments%2Ffireinfo.git Filter all IDs that only consist of 0xff Signed-off-by: Michael Tremer --- diff --git a/src/fireinfo/system.py b/src/fireinfo/system.py index 4148c66..edf7359 100644 --- a/src/fireinfo/system.py +++ b/src/fireinfo/system.py @@ -255,6 +255,10 @@ class System(object): id = None break + # Check if the string only contains 0xff + if all((e == "\xff" for e in id)): + id = None + if id: _ids.append(id)