From 6931aa2ce1bedf8da9c5d8626ec14129a44a1c28 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 22 Jul 2019 13:59:50 +0100 Subject: [PATCH] wider watch for failed translation --- modules/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,")