Ensure the example is always set to something

This commit is contained in:
Travis Ralston 2018-08-03 12:03:23 -06:00
parent 4b1955f395
commit 96f5510266

View file

@ -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"