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

AttributeError: 'Tag' object has no attribute '_slug' #1722

Closed
ionelmc opened this issue May 16, 2015 · 5 comments
Closed

AttributeError: 'Tag' object has no attribute '_slug' #1722

ionelmc opened this issue May 16, 2015 · 5 comments

Comments

@ionelmc
Copy link
Contributor

ionelmc commented May 16, 2015

I'm playing with the master (8786732) a bit but I get this:

WARNING: Caught exception "'Tag' object has no attribute '_slug'". Reloading.
  |___
  | Traceback (most recent call last):
  |   File "c:\users\ionel_000\projects\pelican\pelican\__init__.py", line 437, in main
  |     pelican.run()
  |   File "c:\users\ionel_000\projects\pelican\pelican\__init__.py", line 169, in run
  |     p.generate_context()
  |   File "c:\users\ionel_000\projects\pelican\pelican\generators.py", line 546, in generate_context
  |     self.tags[tag].append(article)
  |   File "c:\users\ionel_000\projects\pelican\pelican\urlwrappers.py", line 53, in __hash__
  |     return hash(self.slug)
  |   File "c:\users\ionel_000\projects\pelican\pelican\urlwrappers.py", line 35, in slug
  |     if self._slug is None:
  | AttributeError: 'Tag' object has no attribute '_slug'
@ingwinlu
Copy link
Contributor

can you provide more info that might be relevant? configs/content/etc. you know the drill.

@ionelmc
Copy link
Contributor Author

ionelmc commented May 17, 2015

Ooops, I thought it was some known-ish issue. Turns out I had cache on and the old cache unpickled incompatible stuff.

Worth documenting in the next release notes I suppose?

@ionelmc
Copy link
Contributor Author

ionelmc commented May 17, 2015

Or maybe have a "version" attribute/field/something in the cache files?

@ionelmc
Copy link
Contributor Author

ionelmc commented May 17, 2015

PS. I have CONTENT_CACHING_LAYER = 'reader' in the settings

@justinmayer
Copy link
Member

Documented this in the upgrade notes at the bottom of the release announcement.

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

3 participants