From fe919049b8b59a5e5a5a734cd573d2e383125f18 Mon Sep 17 00:00:00 2001 From: Rich Piazza Date: Thu, 19 Mar 2020 16:43:37 -0400 Subject: [PATCH] fix marking test --- stix2/custom.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stix2/custom.py b/stix2/custom.py index 1b26998..8a08f0e 100644 --- a/stix2/custom.py +++ b/stix2/custom.py @@ -57,6 +57,9 @@ def _custom_marking_builder(cls, type, properties, version): class _CustomMarking(cls, _STIXBase): + if not properties or not isinstance(properties, list): + raise ValueError("Must supply a list, containing tuples. For example, [('property1', IntegerProperty())]") + _type = type _properties = OrderedDict(properties)