From cced28e3599324e2ac89dc64b7d336d2cadfb3e7 Mon Sep 17 00:00:00 2001 From: Artem Batalov Date: Thu, 14 Dec 2023 12:06:18 +0300 Subject: [PATCH] Fix no mid --- core/message/validators/base_validator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/message/validators/base_validator.py b/core/message/validators/base_validator.py index fa928d87..1e68ad81 100644 --- a/core/message/validators/base_validator.py +++ b/core/message/validators/base_validator.py @@ -32,9 +32,13 @@ def validate(self, message: SmartAppMessage): raise def _log_params(self, message: SmartAppMessage): + try: + mid = message.incremental_id + except KeyError: + mid = None return { "key_name": "message_validator", - MESSAGE_ID_STR: message.incremental_id, + MESSAGE_ID_STR: mid, "validator": self.__class__.__name__, }