Skip to content

List index out of range #15

Description

@tpaktop77
Python 2.7.5 (default, Aug  4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pySMART import DeviceList
>>> devlist = DeviceList()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/virtenvs/pysmart/lib/python2.7/site-packages/pySMART/device_list.py", line 51, in __init__
    self._initialize()
  File "/root/virtenvs/pysmart/lib/python2.7/site-packages/pySMART/device_list.py", line 106, in _initialize
    self.devices.append(Device(name))
  File "/root/virtenvs/pysmart/lib/python2.7/site-packages/pySMART/device.py", line 140, in __init__
    self.update()
  File "/root/virtenvs/pysmart/lib/python2.7/site-packages/pySMART/device.py", line 461, in update
    ASCQ = line_[2][:-1]
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions