From: Michael Tremer Date: Wed, 9 Sep 2015 14:04:43 +0000 (+0100) Subject: Fix crash if there is id has already been reset to None X-Git-Tag: v2.1.12~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deafec982e4c8f2e6ffa3bf70b0a94fa30158e9a;p=oddments%2Ffireinfo.git Fix crash if there is id has already been reset to None Signed-off-by: Michael Tremer --- diff --git a/src/fireinfo/system.py b/src/fireinfo/system.py index edf7359..c2ba12e 100644 --- a/src/fireinfo/system.py +++ b/src/fireinfo/system.py @@ -256,7 +256,7 @@ class System(object): break # Check if the string only contains 0xff - if all((e == "\xff" for e in id)): + if id and all((e == "\xff" for e in id)): id = None if id: