| Index: tools/json_schema_compiler/code.py
|
| diff --git a/tools/json_schema_compiler/code.py b/tools/json_schema_compiler/code.py
|
| index 4f2a64b014c8ad56a7da64d7a6d1919027986eb2..1799bc65d0ace248d2b10db12f34b8424ad6601b 100644
|
| --- a/tools/json_schema_compiler/code.py
|
| +++ b/tools/json_schema_compiler/code.py
|
| @@ -38,8 +38,11 @@ class Code(object):
|
| raise TypeError()
|
| assert self is not obj
|
| for line in obj._code:
|
| - # line % () will fail if any substitution tokens are left in line
|
| - self._code.append(((' ' * self._indent_level) + line % ()).rstrip())
|
| + try:
|
| + # line % () will fail if any substitution tokens are left in line
|
| + self._code.append(((' ' * self._indent_level) + line % ()).rstrip())
|
| + except TypeError:
|
| + raise TypeError('Unsubstituted value when concatting\n' + line)
|
|
|
| return self
|
|
|
|
|