Skip to content

Commit

Permalink
make language optional in input
Browse files Browse the repository at this point in the history
  • Loading branch information
valeksiev committed Dec 2, 2024
1 parent 2832baf commit 2ff2f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alkemio_virtual_contributor_engine/events/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2ff2f1f

Please sign in to comment.