nat / ghtop

See what's happening on GitHub in real time (also helpful if you need to use up your API quota as quickly as possible)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NoneType' object is not subscriptable

muety opened this issue · comments

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