summaryrefslogtreecommitdiff
path: root/tools/gen-cpydiff.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gen-cpydiff.py')
-rw-r--r--tools/gen-cpydiff.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gen-cpydiff.py b/tools/gen-cpydiff.py
index 278023a4b..3bb928090 100644
--- a/tools/gen-cpydiff.py
+++ b/tools/gen-cpydiff.py
@@ -219,6 +219,8 @@ def gen_rst(results):
class_ = []
for output in results:
section = output.class_.split(",")
+ if len(section) < 2:
+ raise SystemExit("Each item must have at least 2 categories")
for i in range(len(section)):
section[i] = section[i].rstrip()
if section[i] in CLASSMAP: