View Issue Details

IDProjectCategoryView StatusLast Update
0014124CentOS-7python-dmidecodepublic2018-10-29 16:29
Reportermzilyas 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
Product Version7.4.1708 
Target VersionFixed in Version 
Summary0014124: Python exception is thrown when iterating the memory entries and passing the last entry
Descriptioncode:

import dmidecode
for entry in dmidecode.memory().values():
  if entry.get('dmi_type') == self._DMIDECODE_MEMORY_DEVICE_TYPE and entry.get('data').get('Part Number') != "NO DIMM":
    do_something()


output:

  for entry in dmidecode.memory().values():
IndexError: list assignment index out of range


This only happens on specific devices. When it happens it always happens.
TagsNo tags attached.
abrt_hash
URL

Activities

sezuan

sezuan

2018-10-29 16:29

reporter   ~0033013

This issue might be fixed with this PR: https://github.com/nima/python-dmidecode/pull/5

Issue History

Date Modified Username Field Change
2017-11-14 15:44 mzilyas New Issue
2018-10-29 16:29 sezuan Note Added: 0033013