Changeset - d4b1b40b41ac
[Not reviewed]
default
0 1 0
Mads Kiilerich - 11 years ago 2015-03-11 00:24:25
madski@unity3d.com
db: fix beaker caching key of (invalid) unicode email addresses

It would crash with UnicodeDecodeError in beaker when trying to retrieve the
user by email.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/caching_query.py
Show inline comments
 
@@ -176,7 +176,7 @@ def _set_cache_parameters(query, region,
 
                        "for region %r namespace %r" %
 
                        (region, namespace)
 
                    )
 
    query._cache_parameters = region, namespace, cache_key
 
    query._cache_parameters = region, safe_str(namespace), cache_key
 

	
 

	
 
class FromCache(MapperOption):
0 comments (0 inline, 0 general)