Ensure the example is always set to something
This commit is contained in:
parent
4b1955f395
commit
96f5510266
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue