From 96f551026695ac0e9a5aa16a960cf80e6fbd72ae Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 3 Aug 2018 12:03:23 -0600 Subject: [PATCH] Ensure the example is always set to something --- scripts/templating/matrix_templates/units.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/templating/matrix_templates/units.py b/scripts/templating/matrix_templates/units.py index d6579e6c..045826f2 100644 --- a/scripts/templating/matrix_templates/units.py +++ b/scripts/templating/matrix_templates/units.py @@ -681,6 +681,7 @@ class MatrixUnits(Units): try: example = get_example_for_schema(definition) except: + example = None pass # do nothing - we don't care if 'title' not in definition: definition['title'] = "NO_TITLE"