NoneType' object is not subscriptable
muety opened this issue · comments
Ferdinand Mütsch commented
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