diff --git a/chain_service/database/models/progress_chain.py b/chain_service/database/models/progress_chain.py index 9eb0f0f..6128ac5 100644 --- a/chain_service/database/models/progress_chain.py +++ b/chain_service/database/models/progress_chain.py @@ -68,6 +68,9 @@ class ProgressChain(BaseMongoModel): ): for action in filter(lambda c: c.action_type == "comment", chain.actions): + if not action.text: + continue + for key, value in variables.items(): action.text = action.text.replace(f"{{{{{key}}}}}", value)