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

Unicode and cache #30

Open
eriktelepovsky opened this issue May 23, 2017 · 0 comments
Open

Unicode and cache #30

eriktelepovsky opened this issue May 23, 2017 · 0 comments

Comments

@eriktelepovsky
Copy link

Once I set use_cache to True, I got this exception:

Traceback (most recent call last):
  File "/Users/erik/src/django/giaroo/source/djangoseo/templatetags/seo.py", line 65, in render
    **kwargs)
  File "/Users/erik/src/django/giaroo/source/djangoseo/base.py", line 301, in get_metadata
    return metadata._get_formatted_data(path, context, site, language)
  File "/Users/erik/src/django/giaroo/source/djangoseo/base.py", line 253, in _get_formatted_data
    site, language)
  File "/Users/erik/src/django/giaroo/source/djangoseo/base.py", line 43, in __init__
    hexpath = hashlib.md5(iri_to_uri(path)).hexdigest()
TypeError: Unicode-objects must be encoded before hashing
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