aboutsummaryrefslogtreecommitdiff
path: root/modules/translate.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-07-22 13:59:50 +0100
committerGravatar jesopo2019-07-22 13:59:50 +0100
commit6931aa2ce1bedf8da9c5d8626ec14129a44a1c28 (patch)
treea5418a7c84373420a26976901bd831c69706ec21 /modules/translate.py
parentOnly fill throttle when buffer is empty (diff)
signature
wider watch for failed translation
Diffstat (limited to 'modules/translate.py')
-rw-r--r--modules/translate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/translate.py b/modules/translate.py
index 0f5d5fb5..b2296c10 100644
--- a/modules/translate.py
+++ b/modules/translate.py
@@ -38,7 +38,7 @@ class Module(ModuleManager.BaseModule):
"client": "gtx", "sl": source_language,
"tl": target_language, "dt": "t", "q": phrase})
- if page and not page.data == "[null,null,\"\"]":
+ if page and not page.data.startswith("[null,null,"):
data = page.data
while ",," in data:
data = data.replace(",,", ",null,")