gistfinder icon indicating copy to clipboard operation
gistfinder copied to clipboard

TypeError: sequence item 1: expected str instance, NoneType found

Open zed opened this issue 4 years ago • 0 comments

I'm getting TypeError after installation:

pipx install gistfinder
gistfinder -u $GITHUB_USER -t $GIST_TOKEN
gistfinder --sync
gistfinder
Traceback (most recent call last):
  File "/home/me/.local/bin/gistfinder", line 8, in <module>
    sys.exit(cli())
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/gistfinder/console.py", line 418, in cli
    UI().run()
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/gistfinder/console.py", line 239, in __init__
    self.state = AppState(loader)
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/gistfinder/console.py", line 51, in __init__
    self.sync_list_lines()
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/gistfinder/console.py", line 80, in sync_list_lines
    self.list_buffer.text = '\n'.join(self.list_lines)
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/gistfinder/console.py", line 102, in list_lines
    return [r['file_name'] for r in self.list_recs.values()]
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/gistfinder/console.py", line 97, in list_recs
    code_expr=self.code_expr
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/gistfinder/loader.py", line 69, in get
    records = self.records
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/gistfinder/utils.py", line 12, in __get__
    res = instance.__dict__[self.func.__name__] = self.func(instance)
  File "/home/me/.local/pipx/venvs/gistfinder/lib/python3.6/site-packages/gistfinder/loader.py", line 46, in records
    rec['code']
TypeError: sequence item 1: expected str instance, NoneType found

zed avatar Feb 07 '21 15:02 zed