diff --git a/src/flake8/utils.py b/src/flake8/utils.py index 02f0607..cf88648 100644 --- a/src/flake8/utils.py +++ b/src/flake8/utils.py @@ -39,6 +39,10 @@ def parse_comma_separated_list(value, regexp=COMMA_SEPARATED_LIST_RE): :rtype: list """ + assert isinstance( # nosec (for bandit) + value, (string_types, type(None)) + ), value + if not value: return []