Raw empty string comparison compatibility

This commit is contained in:
Piero Toffanin 2025-12-22 13:57:22 -05:00
parent a28d2bc1fc
commit 05f4dfdc8f

View File

@ -26,7 +26,7 @@ class TranslationCache:
cache_key = "tcache_" + hashlib.md5(fingerprint.encode('utf-8')).hexdigest()
cached = self.storage.get_str(cache_key, raw=True)
if cached == "":
if len(cached) == 0:
cached = None
if cached is not None: