Skip to content

NoneType' object is not subscriptable #21

@muety

Description

@muety

Got this error after a few seconds in the quad view. I'm on Python 3.7.

Traceback (most recent call last):
  File "/home/myuser/.local/bin/ghtop", line 10, in <module>
    sys.exit(main())
  File "/home/myuser/.local/lib/python3.7/site-packages/fastcore/script.py", line 105, in _f
    tfunc(**merge(args, args_from_prog(func, xtra)))
  File "/home/myuser/.local/lib/python3.7/site-packages/ghtop/ghtop.py", line 154, in main
    _funcs[mode](evts)
  File "/home/myuser/.local/lib/python3.7/site-packages/ghtop/ghtop.py", line 114, in quad_logs
    if x.type in d: d[x.type].append(f(x)[:95])
TypeError: 'NoneType' object is not subscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions