aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--export_json.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/export_json.py b/export_json.py
index e2c20ae..370b5fe 100644
--- a/export_json.py
+++ b/export_json.py
@@ -11,6 +11,12 @@ def main():
for (name, templates) in export.export_all(data):
page = []
+ try:
+ # Force errors.
+ templates = list(templates)
+ except export.ExportFailure, e:
+ export.warn('export failed: %s: %s' % (name, e.message))
+
for template in templates:
tname = template.name
values = dict(template.values)