Open maifire opened 4 years ago
Hi, thanks for asking the question. MessageNotHandledException is raised when the object posted doesn't satisfy any rules. In that case, the rules engine does not keep a copy of it. You can can handle the exception and ignore:
try:
post('risk7', {'succ': 31, 'fail': 11})
post('risk7', {'succ': 30, 'fail': 11})
except MessageNotHandledException as error:
pass
Hi, I try your module for checking condition with dynamic rule load from json. I planned rule file & data from redis and insert it to rule engine and send alert to any other DBs or API. But when I try above code, at last line, I met below Exception. durable.engine.MessageNotHandledException: {'succ': 30, 'fail': 11}
I think this will be your intended work but don't know how can I handle that properly. When met last line I hope nothing happen or call some other callback function. Could you guide it?