mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-01-18 10:00:30 -05:00
Raw empty string comparison compatibility
This commit is contained in:
parent
a28d2bc1fc
commit
05f4dfdc8f
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user