Author: gnichols
Date: 2011-10-17 19:41:32 +0000 (Mon, 17 Oct 2011)
New Revision: 1114
Modified:
trunk/v7/hardwaretest.py
Log:
745212 - Traceback on blank Model Name in dmidecode
Modified: trunk/v7/hardwaretest.py
===================================================================
--- trunk/v7/hardwaretest.py 2011-10-17 19:40:52 UTC (rev 1113)
+++ trunk/v7/hardwaretest.py 2011-10-17 19:41:32 UTC (rev 1114)
@@ -1056,9 +1056,9 @@
continue
(key,val)=[t.strip() for t in line.split(':',1) if
line.find(':')]
- if key == "Manufacturer":
+ if key == "Manufacturer" and val:
vendor = val
- if key == "Product Name":
+ if key == "Product Name" and val:
model = val
# try and use the first word as the make
make = val.split()[0]
Show replies by date