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

Numeric tag causes python exception #5

Open
osresearch opened this issue Apr 16, 2020 · 0 comments
Open

Numeric tag causes python exception #5

osresearch opened this issue Apr 16, 2020 · 0 comments

Comments

@osresearch
Copy link

If a tag is a number it causes a type error:

ERROR   -  Exception in callback <bound method LiveReloadHandler.poll_tasks of <class 'livereload.handlers.LiveReloadHandler'>>
Traceback (most recent call last):
  File "/home/hudson/.local/lib/python3.7/site-packages/tornado/ioloop.py", line 907, in _run
    return self.callback()
  File "/home/hudson/.local/lib/python3.7/site-packages/livereload/handlers.py", line 69, in poll_tasks
    filepath, delay = cls.watcher.examine()
  File "/home/hudson/.local/lib/python3.7/site-packages/livereload/watcher.py", line 105, in examine
    func()
  File "/home/hudson/.local/lib/python3.7/site-packages/mkdocs/commands/serve.py", line 136, in builder
    build(config, live_server=live_server, dirty=dirty)
  File "/home/hudson/.local/lib/python3.7/site-packages/mkdocs/commands/build.py", line 264, in build
    files = config['plugins'].run_event('files', files, config=config)
  File "/home/hudson/.local/lib/python3.7/site-packages/mkdocs/plugins.py", line 94, in run_event
    result = method(item, **kwargs)
  File "/home/hudson/.local/lib/python3.7/site-packages/tags/plugin.py", line 63, in on_files
    self.generate_tags_file()
  File "/home/hudson/.local/lib/python3.7/site-packages/tags/plugin.py", line 104, in generate_tags_file
    t = self.generate_tags_page(tag_dict)
  File "/home/hudson/.local/lib/python3.7/site-packages/tags/plugin.py", line 87, in generate_tags_page
    tags=sorted(data.items(), key=lambda t: t[0].lower()),
  File "/home/hudson/.local/lib/python3.7/site-packages/tags/plugin.py", line 87, in <lambda>
    tags=sorted(data.items(), key=lambda t: t[0].lower()),
AttributeError: 'int' object has no attribute 'lower'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant