fix of empty-string category name

This commit is contained in:
Griatch 2020-11-12 22:34:22 +01:00
parent 0e8c979134
commit afd13e5caa

View file

@ -438,7 +438,7 @@ class IAttributeBackend:
"""
key = key.strip().lower() if key else None
category = category.strip().lower() if category else None
category = category.strip().lower() if category is not None else None
if key:
return self._get_cache_key(key, category)
return self._get_cache_category(category)