From d4159b49a47bc8eae7ca62e162db51aba7c2e814 Mon Sep 17 00:00:00 2001 From: Andriy Lytvyn Date: Mon, 28 Sep 2020 17:42:33 +0300 Subject: [PATCH] docstrings --- business_rules/engine.py | 2 +- business_rules/exceptions.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/business_rules/engine.py b/business_rules/engine.py index 775d990e..b2cda603 100644 --- a/business_rules/engine.py +++ b/business_rules/engine.py @@ -88,7 +88,7 @@ async def check_condition(condition, defined_variables): try: operator_type = await _get_variable_value(defined_variables, name) except MissingVariableException: - """""" + """If variable value is missing, than corresponding condition is false""" return False if 'value_is_variable' in condition and condition['value_is_variable']: diff --git a/business_rules/exceptions.py b/business_rules/exceptions.py index 0727e5b1..e96aa9da 100644 --- a/business_rules/exceptions.py +++ b/business_rules/exceptions.py @@ -1,4 +1,7 @@ class MissingVariableException(BaseException): - """If variable is missing(""" \ No newline at end of file + """ + Variable can raise this exception, if variable value is missing. + If exception raised, than corresponding exception is false. + """ \ No newline at end of file