Skip to content

Commit

Permalink
Fix no mid
Browse files Browse the repository at this point in the history
  • Loading branch information
bart0003 committed Dec 14, 2023
1 parent b0e2e97 commit cced28e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/message/validators/base_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__,
}

Expand Down

0 comments on commit cced28e

Please sign in to comment.