diff options
author | Solomon Tan <solomonbstoner@yahoo.com.au> | 2021-08-30 20:24:35 +0800 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-09-27 10:46:39 -0400 |
commit | 91e9ddf8e1c37adff0c982c80bd1792df58cbe23 (patch) | |
tree | 83ed5915f500ec07b0f07b272a8dbaf2cac5049b /grc/core | |
parent | 99c1fc80d53d0d5bbc3d3466e1aee0250cb1a256 (diff) |
grc: Raise error for unfilled parameters
Issue 5032 results from an unfilled parameter erroneously indicated as
filled with a default value of 0. This PR makes grc indicate an error
when there is an unfilled parameter by returning None.
Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
Diffstat (limited to 'grc/core')
-rw-r--r-- | grc/core/params/param.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/core/params/param.py b/grc/core/params/param.py index 041771f52a..e6282b2fb6 100644 --- a/grc/core/params/param.py +++ b/grc/core/params/param.py @@ -214,7 +214,7 @@ class Param(Element): except Exception as e: raise Exception('Value "{}" cannot be evaluated:\n{}'.format(expr, e)) else: - value = 0 + value = None # No parameter value provided if dtype == 'hex': value = hex(value) elif dtype == 'bool': |