From 2ff2f1fc937d2a851e9a555c5b972ab64f174c31 Mon Sep 17 00:00:00 2001 From: Vladimir Aleksiev Date: Thu, 28 Nov 2024 09:49:07 +0200 Subject: [PATCH] make language optional in input --- alkemio_virtual_contributor_engine/events/input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alkemio_virtual_contributor_engine/events/input.py b/alkemio_virtual_contributor_engine/events/input.py index 273b8df..ad7503e 100644 --- a/alkemio_virtual_contributor_engine/events/input.py +++ b/alkemio_virtual_contributor_engine/events/input.py @@ -135,7 +135,7 @@ def __init__(self, input_data: Dict[str, Any]) -> None: self.external_config = dict(input_data["externalConfig"]) self.result_handler = ResultHandler(input_data["resultHandler"]) self.persona_service_id = str(input_data["personaServiceID"]) - self.language = str(input_data["language"]) + self.language = input_data.get("language", "EN") def to_dict(self): if self.operation is InvocationOperation.INGEST: