Ensure the example is always set to something

pull/977/head
Travis Ralston 6 years ago
parent 4b1955f395
commit 96f5510266

@ -681,6 +681,7 @@ class MatrixUnits(Units):
try: try:
example = get_example_for_schema(definition) example = get_example_for_schema(definition)
except: except:
example = None
pass # do nothing - we don't care pass # do nothing - we don't care
if 'title' not in definition: if 'title' not in definition:
definition['title'] = "NO_TITLE" definition['title'] = "NO_TITLE"

Loading…
Cancel
Save