Commit 4eb8d9bc authored by Wael Ramadan's avatar Wael Ramadan
Browse files

check if error not empty before applying container

parent 31052a9d
Pipeline #5700 passed with stage
in 20 minutes and 8 seconds
......@@ -168,7 +168,8 @@ class Document:
"detected": self.dominant_language_code,
"analysis": self.analysis_lang
container["error"] = self.error
if self.error:
container["error"] = self.error
if "lemmas" in self.analyzers:
container["lemmas"] = self.get_lemma()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment