Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

malformed yaml results to an error in listing crawlers #217

Open
zufanka opened this issue Jan 16, 2023 · 0 comments
Open

malformed yaml results to an error in listing crawlers #217

zufanka opened this issue Jan 16, 2023 · 0 comments

Comments

@zufanka
Copy link

zufanka commented Jan 16, 2023

I got this error when one of my yaml files was not formatted properly. Not completely sure why it happens like this, also if this is the only time this happens, but there is an empty object being passed on, hence the NoneType. This error message is quite confusing, can it be something like "One of your yaml files is probably malformatted." ?

$ memorious list
Traceback (most recent call last):
  File "/usr/local/bin/memorious", line 33, in <module>
    sys.exit(load_entry_point('memorious', 'console_scripts', 'memorious')())
  File "/memorious/memorious/cli.py", line 225, in main
    cli(obj={})
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/memorious/memorious/cli.py", line 174, in index
    crawler.name,
AttributeError: 'NoneType' object has no attribute 'name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🏷️ Triage
Development

No branches or pull requests

1 participant