### What this PR does / why we need it? Make sure that None parameters are not passed in for `--error` ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? CI passed locally Signed-off-by: wangli <wangli858794774@gmail.com>