fix of empty-string category name

This commit is contained in:
Griatch 2020-11-12 22:34:22 +01:00
parent 6d73605813
commit 38b36845d6

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)